double M2_0(c,m)
double c[160];
double m[16][5];
{
int n;
int s=0;
for (n=0; n<16; ++n)
{
s = s + c[n+16*0]*m[n][0];
}
return s;
}
can someone help me!
error:
c and m was not declare in this scope (this is the error in c++ but in c it's OK!)
i want to fill an array with this function.
for example:
double M[5][100] = {
{M2_0(c,m), M2_1(c,m),M2_2(c,m)...
};
c,m are double array and i need 500 function like M2_0(c,m) for filling the array.
thanks!