PDA

Click to See Complete Forum and Search --> : What's wrong?


NOMADMAN
Apr 25th, 2002, 01:47 AM
void MakeChoice(int choice)
{
switch (choice)
{
case: 1
cout << "An excellent seafood choice\n\n";
break;
case: 2
cout << "An excellent seafood choice\n\n";
break;
case: 3
cout << "A Thanksgiving feast\n\n";
break;
case: 4
cout << "World's best burger\n\n";
break;
case: 5
cout << "Top grade sirloin - the best!\n\n";
break;
case: 6
cout << "Grains, nuts, and lots of veggies!\n\n";
break;
default:
cout << "Unknown menu option\n\n";
break;
}
}


Anyone?

NOMAD

HarryW
Apr 25th, 2002, 04:19 AM
void MakeChoice(int choice)
{
switch (choice)
{
case 1:
cout << "An excellent seafood choice\n\n";
break;
case 2:
cout << "An excellent seafood choice\n\n";
break;
case 3:
cout << "A Thanksgiving feast\n\n";
break;
case 4:
cout << "World's best burger\n\n";
break;
case 5:
cout << "Top grade sirloin - the best!\n\n";
break;
case 6:
cout << "Grains, nuts, and lots of veggies!\n\n";
break;
default:
cout << "Unknown menu option\n\n";
break;
}
}
You had the colons in the wrong places.

NOMADMAN
Apr 26th, 2002, 05:16 PM
Thaks, I'm an idoit
I think is should delete the post so as to cover up my retard-dom!