Expand|Select|Wrap|Line Numbers
- double (*var)[2] = new double[NX][2];
Expand|Select|Wrap|Line Numbers
- double *(*var)[2] = new double*[NX][2];
- for(i=0; i<NX; ++i)
- {
- var[i] = new double[NY][2]; // NY != NX
- }
I can't seem to get the syntax correct for a pointer to pointer to const length array
|