Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int input = 0;
- enum menuLists {
- Play = 1, Option = 2, Exit = 3
- };
- cout << "SIMPLE GAME MENU " << endl;
- cout << "1. Play" << endl;
- cout << "2. Option" << endl;
- cout << "3. Exit" << endl;
- cout << "Type your number: ";
- cin >> input;
- switch (input)
- {
- case Play:
- cout << "You choose play" << endl;
- break;
- case Option:
- cout << "You choose Option" << endl;
- break;
- case Exit:
- cout << "You choose Exit" << endl;
- break;
- default:
- cout << "Type the correct number" << endl;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement