C++ oop | Sololearn: Learn to code for FREE!

-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 . . .

12/31/2020 11:18:59 AM

‎mohammad abas

4 Answers

New Answer

+4

And your attempt?

+3

tl;dr I sniffed that it's a homework and that homework is now my property

0

ممكن حل السؤال