// Menu Chooser // Demonstrates the switch statement #include #include using namespace std; int main() { cout << "Difficulty Levels\n\n"; cout << "1 - Easy\n"; cout << "2 - Normal\n"; cout << "3 - Hard\n\n"; string levels[4] = {"none", "Easy", "Normal","Hard"}; string planes[4] = {"paper aeroplane", "Piper Arrow", "Learjet 60","Boeing F-15"}; int choice; cout << "Choice: "; cin >> choice; if ((choice < 1) || (choice > 3)) { choice = 0; } else {} cout << "You picked " << levels[choice] << ", your were issued a " << planes[choice] << ".\n"; system("PAUSE"); return 0; }