dynamic multidimensional arrays as function arguments
I have the following array:
I want to pass the array to the following function:
A = new double*[s];
for (int i=0;i<s;i++)
but I get the message from the g++ compiler:
function1 (double A,int n)
cannot convert `double**' to `double (*)' for argument
`1' to `double function1(double (*), int)'
How should I declare and initialize the dynamic array
to make it work with the function? I cannot change
function1, because it is written by someone else.