Sorry for posting here, but not getting an answer anywhere else.
My prob is dynamically allocating a 2D array:
Thing::Thing(int num1, int num2)
{
ptr = new float[num1][num2];
}
where ptr is defined as;
float **ptr;
This is not allowed, so what syntax would I use to do this? I want to be able to reference the array using *[j] and not fiddle around with pointer notation.
You can use the Numerical Recipes codes, nrutil.h and nrutil.c, available here. These are public domain, and implement what Garnet described, more-or-less.