overloading the  operator
Posted on 1998-04-08
matrice::matrice(int lgne,int col)
cell=new (int*[lgne]) ;
This is the constructor for my matrix class, I can use my matrix like a multidimensional table, I would like to overload the [ ] operator to perform a check if the asked cell is within the matrix.
If I call the element , how can I overload my operator function 0,in order to check the valifity of the element ? The [ ] operator does only accept one argument.