Click to See Complete Forum and Search --> : How to dynamically allocate multidimensional Arrays ?


April 25th, 1999, 12:57 PM
Howdy !
Does anybody know how to
dynamically allocate arrays of more than one dimension,
at least TWO dimensions : array[x][y]

tchung
April 25th, 1999, 10:45 PM
say " make an array like this

int myarray[x][y];

You can do that in this way, maybe... ^_^

int (*myarray)[y];
myarray=new int[x][y];

Is this Your answer?



by nfuox