Matrix Calculator CLI
A command-line calculator that parses matrices from input and performs addition, multiplication, and transpose operations, with a custom Matrix class using operator overloading. Learners practice classes, operator overloading, and dynamic 2D arrays in C++.
- Estimate
- ~7.5h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
Standard Library (STL)
Project roadmap
- 01
Design the Matrix class
~1.5hCreate a Matrix class storing dimensions and data in a std::vector of std::vector<double>.
- 02
Implement input parsing
~1.5hParse matrix dimensions and values typed by the user or read from a text file into Matrix objects.
- 03
Overload arithmetic operators
~2hImplement operator+ and operator* for Matrix, validating dimension compatibility and throwing on mismatch.
- 04
Implement transpose and printing
~1.5hAdd a transpose() method and an overloaded operator<< for clean matrix printing.
- 05
Build the CLI menu
~1hCreate a menu letting users load two matrices and choose an operation to perform and display.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack