How do I get a switch statement to loop back into a menu
Hey everyone I'm currently having some trouble in making the switch statement coming back out around to the start of the menu. Instead it proceeds into another main function that I don't want it to unless the user chooses the right selection. here's the code I have anyway: int main() { int choice; bool menu = true; cout <<"Please select one of the following options: \n"; cout << "1: Play\n" "2: Help\n" "3: Config\n" "4: Quit\n"; cout << "Enter your selection (1, 2,3 or 4): "; cin >> choice; //***************************************************************************** // Switch menu to displa
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.