Here is my program.If got any error ,can you fix it?Thank you.
how to solve too many arguments in function call ?
Collapse
X
-
Tags: None
-
Compiling your code gives next error:
The error seems to be at line 77:Code:program.cpp: In function ‘int main()’: program.cpp:77:32: error: too many arguments to function ‘void list()’ program.cpp:18:6: note: declared here make: *** [program] Error 1
related, line 18:Code:case 1: list(products, index);
Code:void list();
-
-
You have:
and then you have:Code:void list();
Now either the list functions has no arguments or it has two arguments. If I has no arguments, then you can't use arguments. If it has two arguments, then you can't advertise it as having no arguments.Code:list(products, index);
Comment
-
Comment