I get this error in passing an array when I call a function:
expected primary-expression before ']' token
Heres the switch statement:
switch(selection) //calls based on selection
{ //calls other functions
case 1: search(list[]);
break;
case 2: add(list[]);
break;
case 3: remove(list[]);
break;
case 4: update(list[]);
break;
//case 5: cout<<"Program Terminated"<
// break;
default: cout<<"Make a valid selection 1-5 !!"<
}//end switch
2006-09-14
06:46:22
·
3 answers
·
asked by
Reaper0886
1
in
Computers & Internet
➔ Programming & Design