expected primary-expression before ']'
hello, i'm new to c++. i'm doing my first program.
i get "expected primary-expression before ']'" error and i have no idea what's wrong =/
//(printPoly is working fine.. just this line is doing trouble.)
void printPolyMenu(double polyArr[MAX_DEGREE+2], int capacity)
cout<<"Which polynomial do you wish to print? (0 - "<<capacity<<")"<<endl;
if(line>capacity || line<0)
cout<<"Polynomial does not exist."<<endl;
printPoly(polyArr[MAX_DEGREE+2],line); //here comes the error..
could someone help? thanks~