|
-
September 8th, 2005, 11:48 PM
#1
What am i missing?
Code:
void displayMenu()
{
do
{
clrscr();
cout << " " << endl;
cout << " --------------------------- " << endl;
cout << " Welcome to the Video System " << endl;
cout << " --------------------------- " << endl;
cout << " " << endl;
cout << " 1. Add New Video " << endl;
cout << " 2. Borrow Video " << endl;
cout << " 3. Modify Video Record " << endl;
cout << " 4. Delete Video " << endl;
cout << " 5. Report of Available videos " << endl;
cout << " 6. Exit ";
cout << " " << endl;
cout << " Please select an option 1-6: ";
cin >> option;
switch(option)
{
case 1:
doAdd();
break;
case 2:
doBorrow();
break;
case 3:
doModify();
break;
case 4:
doDelete();
break;
case 5:
doReport();
break;
case 6:
doExit();
break;
default:
cout << "Error: Invalid Option";
break;
}
while(option != 1 && option != 2 && option != 3 && option != 4 && option != 5 && option != 6);
)
Error:test.cpp(102,2):Expression syntax
Error:test.cpp(103,1):Statement missing ;
Error:test.cpp(103,1):Compound statement missing }
Error:test.cpp(103,1) o statement must have while
Error:test.cpp(103,1):Compound statement missing }
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|