C
Cameron
Anyone know how you put multidimensional arrays on the free store?
singles work fine but I get conversion errors when I try to specify
the second, that is...
grid_cell *cells2 = new grid_cell[64];
is fine but...
grid_cell *cells2 = new grid_cell[64][64];
gives the error...
cannot convert from 'struct grid_cell (*)[64]' to 'struct grid_cell *'
I'm guessing there is a rather simple solution to this but for the life
of me it doesn't want to present its self.
singles work fine but I get conversion errors when I try to specify
the second, that is...
grid_cell *cells2 = new grid_cell[64];
is fine but...
grid_cell *cells2 = new grid_cell[64][64];
gives the error...
cannot convert from 'struct grid_cell (*)[64]' to 'struct grid_cell *'
I'm guessing there is a rather simple solution to this but for the life
of me it doesn't want to present its self.