can anyone help me? its in a class.
can anyone help me? its in a class.
I Love Jesus
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;
zen
What does int ** mean? I've seen double asterisks a few places, but never an explanation of them.Originally posted by zen
Something like this -
Code:int** arr = new int*[row];
Pointing to something pointing to something!
Of course....
In this case, a pointer to an array of pointers. For TRUE dynamoism
Ah.
"Technology has merely provided us with a more efficient means for going backwards" - Aldous Huxley