It works, thank you. Here's the final (just in case you want to see it):
Code:
// Menu Chooser
// Demonstrates the switch statement
#include <iostream>
using namespace std;
int main()
{
enum GAMEMODE {EASY,MEDIUM,HARD};
cout << "Difficulty Levels\n\n";
cout << "1 - Easy\n";
cout << "2 - Normal\n";
cout << "3 - Hard\n\n";
int choice;
cout << "Choice: ";
cin >> choice;
choice -= 1;
switch (choice)
{
case EASY:
cout << "You picked Easy.\n";
break;
case MEDIUM:
cout << "You picked Normal.\n";
break;
case HARD:
cout << "You picked Hard.\n";
break;
default:
cout << "You made an illegal choice.\n";
}
return 0;
}
by the way, why do I need to decrease the value of choice in order to get the right answer?