- 2

C++ oop

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 : 1 2 3 Enter 2 th row elements : 4 5 6 Enter 3 th row elements : 7 8 9 **********MATRIX - 2********** Enter the rows of the matrix : 3 Enter the cols of the matrix : 3 Enter 1 th row elements : 3 4 5 Enter 2 th row elements : 6 7 8 Enter 3 th row elements : 1 2 3 **********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 . . .

31st Dec 2020, 11:18 AM
‎mohammad abas
‎mohammad abas - avatar
4 Antworten
+ 4
And your attempt?
31st Dec 2020, 12:08 PM
Michal Doruch
+ 3
tl;dr I sniffed that it's a homework and that homework is now my property
31st Dec 2020, 11:24 AM
Rellot's screwdriver
Rellot's screwdriver - avatar
0
ممكن حل السؤال
9th Mar 2021, 8:38 PM
رسل الحيالي
رسل الحيالي - avatar