here is some code for a menu chooser. well, when I run it, i can't seem to get the strings to pop up that tell you what you chose. The program just automatically shuts down after i hit enter after my choice. plz help
Code://Menu Chooser //Demonstrates the switch statement #include<iostream> int main() { std::cout<<"Dfficulty Levels"<<std::endl; std::cout<<"1 - Easy"<<std::endl; std::cout<<"2 - Normal"<<std::endl; std::cout<<"3 - Heroic"<<std::endl; std::cout<<"4 - Legendary"<<std::endl; int choice; std::cout<<"Choice: "<<std::endl; std::cin>>choice; switch(choice) { case 1: std::cout<<"You picked Easy"<<std::endl; break; case 2: std::cout<<"You picked Normal"<<std::endl; break; case 3: std::cout<<"You picked Heroic"<<std::endl; break; case 4: std::cout<<"You picked Legendary"<<std::endl; break; default: std::cout<<"You made an illegal choice"<<std::endl; } return 0; }