error: expected ';' before string constant
error: expected ';' before string constant
Why does that error keep occuring?
1 2 3 4 5 6 7 8 9 10 11
|
cout << (1) "Add a value" << endl;
cout << (2) "Edit a value" << endl;
cout << (3) "Print a value" << endl;
cout << (4) "Display Statistics" << endl;
cout << (5) "Quit the program" << endl;
return;
|
It might be because those (#) lie outside quotes. Try this for all the lines:
cout << "(1) Add a value" << endl;
What are the (1), (2), etc.? I think you should include them in the quotation marks.
Thanks it worked
Topic archived. No new replies allowed.