In my C++ class I've been writing C++ code based on matrix manipulation.
My first program was simple enough, using a class to multiply a 2x2 matrix by a 2d column vector and display the results.
Today I wrote a program using an array and a class to find the determinant of a user-inputed 2x2 matrix.
BUT I want the user to be able to define the size of the matrix - the array.
I tried this:
But, not surprisingly, that doesn't work.
What needs to be done?