How can i declare 2D array in visual C++ 6.0 as a member of class?
this syntax of mine is giving error.
class sparseadd
{
int *p;
int row;
int col
};
sparseadd::sparseadd(int r, int c)
{
row = r;
col = c;
p = new int[r][c]; // here i am getting errors:icon_question:
}