Description: 3, matrix, (c)
Write a C++ program to perform the following functions:
(1) matrix class, define a matrix of class attributes include:
matrix size, lines, rows (rows and columns to represent)
storage matrix array pointer, dynamic application (new) according to the size of the matrix.
(2) matrix class method comprising:
constructor parameter is the size of the matrix, dynamic application memory matrix array
destructor release matrix array pointer
copy constructor, and the need to apply for and copy an array
The input from cin input matrix elements
output, the the matrix formatted output to cout
Function matrix sum, the sum of two matrices, and the results are stored in another matrix class, but must be the same as the size of the matrix
matrix function subtraction, subtract two matrices, and save the results in another matrix class, but it must be the same as the size of the matrix.
(3) d
To Search:
File list (Check if you may need any files):
matrix.cpp