Test your class definition with this main program. Save your class definition in "matrix.h" and compile the program with "clang++ matrix-5.cpp". The running result should look like:
Constructor called for a 3*4 matrix.
Constructor called for a 3*4 matrix.
Copy constructor called for a 3*4 matrix.
Constructor called for a 3*4 matrix.
Destructor called for a 3*4 matrix.
3 3 3 3
3 12 3 3
3 3 101 3
Constructor called for a 4*3 matrix.
3 3 3
3 12 3
3 3 101
3 3 3
Destructor called for a 4*3 matrix.
Destructor called for a 3*4 matrix.
Destructor called for a 3*4 matrix.
Destructor called for a 3*4 matrix.