Illegal cases and brakes
This code has "Illegal cases and brakes."
I don't know what's wrong whith it.
1 2 3 4 5 6 7 8 9 10 11
|
char encryptMenuInput;
cin >> encryptMenuInput;
switch(encryptMenuInput);
{
case "e":
cout << "you said E";
break;
case "d":
cout << "you said D";
break;
}
|
Line 3:
switch(encryptMenuInput);
There should not be a semi-colon there.
@Daleth
Thanks it worked
Topic archived. No new replies allowed.