I took up c++ today to do some numerical work. Now, I want to use some multi arrays in my functions. But I keep getting errors. My declaratiion goes something like this;
function declaration at top;
double myfunc[][](double[][] ); //line 14 is here...
...
And then the function;
double myfunc[][](double d[][]){
double out[3*N][3*N];
( do stuff to define out)
return out;
}
Apparently this wont do it.
tmain.cpp:14: error: expected unqualified-id before '[' token... and line 14 is the first one here...
How does one properly declare it?
function declaration at top;
double myfunc[][](double[][] ); //line 14 is here...
...
And then the function;
double myfunc[][](double d[][]){
double out[3*N][3*N];
( do stuff to define out)
return out;
}
Apparently this wont do it.
tmain.cpp:14: error: expected unqualified-id before '[' token... and line 14 is the first one here...
How does one properly declare it?
