template <class T>
class Matrix
{
private:
T** data; // matrix elements stored here
int rows; // number of rows
int cols; // number of columns
public:
Matrix(int numRows = 0, int numCols = 0); // makes storage allocation but leaves it uninitialized, for 0,0 dont allocate memory
Matrix(T const* const* inputData, int numRows, int numCols);
Matrix(const Matrix& rhs);
~Matrix();
I have to do implementation and normally I can. But this time I can't figure out what to do with T**
I am pretty newbie as you can see. At the first i thought as a double pointer but clearly it isn't. I can only use the ”iostream” header file and the Matrix class’ interface header file that which is given to me.