Create a class called Matrix having the following data membersint rows;int cols;int mat[][].Write a program in C++ to implement the following operations (the ones mentioned in comments) on Matrix.The main() function of the above program is as below:int main() {Matrix m1(3,3); // it will initialize rows and colsm1.getdata(); //accept the data in matrixMatrix m2=m1; //copy one matrix contents into anotherm2.putdata(); // display the contents of matrixMatrix m3;m3.putdata();}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here