Question: Your task for this lab is to create an easy-to-use Matrix class in C++ that makes use of dynamic memory allocation and includes basic matrix
Your task for this lab is to create an easy-to-use Matrix class in C++ that makes use of dynamic memory allocation and includes basic matrix operations both in the form of regular functions and via operator overloading as shown below. .........MATRIX - 1*...... Enter the rows of the matrix: 3 Enter the cols of the matrix : 3 Enter 1 th row elements : 123 Enter 2 th row elements : 456 Enter 3 th row elements : 789 *********MATRIX - 2********** Enter the rows of the matrix : 3 Enter the cols of the matrix: 3 Enter throw elements : 345 Enter 2 th row elements : 678 Enter 3 th row elements : 123 ...*******ADDITION..... 468 10 12 14 8 10 12 **********Subtraction********** -2-2-2 -2-2-2 666 **Mutiplication*** 18 24 30 48 63 78 78 102 126 .........EQUALITY......... Are both matricex equal ? No **********MATRIX TRANSPOSE**......* 147 258 369 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
