How to make a Menu for my games
I'm trying to make a game menu, for all the games I want to put in my program for my end of the semester project.
I want it to display this:
***WELCOME TO GAMES-R-US***
Please choose a game you will like to play
1-
2-
3-
4-
This will get you started, just add the getMenuAnswer and a way to run the program they select.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#include <iostream>
using namespace std;
void ShowMenu ()
{
cout << "************************************\n";
cout << "*** WELCOME TO GAMES-R-US ***\n";
cout << "************************************\n";
cout << "0: Option 0 - Exit\n";
cout << "1: Option 1\n";
cout << "2: Option 2\n";
cout << "3: Option 3\n";
cout << "4: Option 4\n";
cout << "What would you like to do? : ";
} //end Function
int main()
{
ShowMenu ();
getMenuAnswer ();
doMenuItem ();
return 0;
}
|
Thank You.
Topic archived. No new replies allowed.