Hey, something that I don't understand:
I can use a non-constant integer to dynamically allocate space for a one-dimensional array, like so:
float *things = new float[num_of_things];
But the following will not compile:
float *things = new float[things_per_row][things_per_col];
Why is this? There's gotta be a way to dynamically create multi-dimenionsal arrays..... right?
I can use a non-constant integer to dynamically allocate space for a one-dimensional array, like so:
float *things = new float[num_of_things];
But the following will not compile:
float *things = new float[things_per_row][things_per_col];
Why is this? There's gotta be a way to dynamically create multi-dimenionsal arrays..... right?