hi
i'm trying to write a templated class that is for calculating a determinant of an n by n matrix, but i go stuck. it is important to not use the STL library at all.. i getting an error in my code. can you help me? i've already gone through the existing threads..
so my code so far is:
Code:
#include <iostream>
using namespace std;
template <class T>
class Matrix {
int rows;
int cols;
T *data[rows][cols];
public:
Matrix();
Matrix(const Matrix<T>&);
void load(int, int, T);
T read(int, int);
void print();
T determinant();
};
thank you.
A.