ASingerMustDie
Programmer
Hi All
Surely this has been asked before, I would search but that particular facility appears to be permanently out-of-order.
What I am hoping to do is declare a 2-dimensional array with bounds according to two variables, such as:
int x = 50; // could be anything
iny y = 100; // could be anything
double *imageArray;
imageArray = new double [x][y];
imageArray[25][50] = 2.5;
We surely all know that this isn't quite right, but how can it be done?
Thanks in advance, and thanks for helping with my previous post
Regards.
Surely this has been asked before, I would search but that particular facility appears to be permanently out-of-order.
What I am hoping to do is declare a 2-dimensional array with bounds according to two variables, such as:
int x = 50; // could be anything
iny y = 100; // could be anything
double *imageArray;
imageArray = new double [x][y];
imageArray[25][50] = 2.5;
We surely all know that this isn't quite right, but how can it be done?
Thanks in advance, and thanks for helping with my previous post
Regards.