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!

Re: problem with C++ 80 80

Change this:

double M2_0(c,m)
double c[160];
double m[16][5];
 {

To this:

double M2_0(double c[160], double m[16][5])
 {

C++ doesn't support the old C-style function declaration. C also no longer supports it, so I don't recommend using it in C either.

Re: problem with C++ 80 80

thanks a lot!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.