I need to write a function that recieves a two dimensional array as a parameter. The problem is that the size of both dimensions are unknown, and will change each time the function is called. I started out writing it like this...
int nSizeDim1 = 25;
int nSizeDim2 = 8;
someFunction(lfArray, nSizeDim1, nSizeDim2);
void someFunction(double** lfArray, int nSizeDim1, int nSizeDim2)
do something with the array;
Then I changed the calling function to look like...
Using the cast to the double** the program compiled, but the data in the two dimensional array was not accessible from the someFunction.
Any help would be greatly appreciated.