can anyone help me? its in a class.
can anyone help me? its in a class.
Something like this -
Code:int row =10;
int col =20;
int** arr = new int*[row];
for(int i=0;i<row;i++)
arr[i]=new int[col];
//do stuff
for(int j=0;j<row;j++)
delete [] arr[j];
delete [] arr;
What does int ** mean? I've seen double asterisks a few places, but never an explanation of them.Quote:
Originally posted by zen
Something like this -
Code:int** arr = new int*[row];
Pointing to something pointing to something!
Of course.... :D
In this case, a pointer to an array of pointers. For TRUE dynamoism :D
Ah.