I'm trying to use multidimensional arrays but I get an error and no matter what variation I try and I can't seem to be able to get it to work, I couldn't find any help in the documentation online either...
const int SIZE = 50;
double a(double A[][SIZE], int m, int n);
void main(){
double arg[3][3] = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } };
cout << a(arg[SIZE], 3, 3);//I get an error here
}
Why doesn't cout << a(arg, 3, 3);
work either? arg
in the function is pointer so why is it even needed to specify size or whatever?
The error I get is:
Error 1 error C2664: 'double MeanMatrix(double [][50],int,int)' : cannot convert argument 1 from 'double' to 'double [][50]'