|
|
const matrixType& operator=(const matrixType& right);matrixType& mat = otherMat; //error trying to assign const reference to non-const reference matrixType& operator=(const matrixType& right); |
|
return *this; upon completion.matrixType m; because you have not defined the default constructor. Also, you haven't yet defined this constructor matrixType(int rows, int columns); although that doesn't cause errors in your current code.
|
|
~matrixType() { delete [] matrix; }delete [] the matrix array because it wasn't created dynamically (and this isn't the right way to do it if it were created dynamically with two dimensions). |
|
|
|