This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ALLGameGheorghe/InGameMenu.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
72 lines (49 sloc)
1.61 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <stdexcept> | |
using namespace std; | |
#include "libsqlite.hpp" | |
// // function to display the Menu after you logged in | |
int MenuGame(int Player_ID){ | |
char choice; | |
Game: | |
do | |
{ | |
cout << "*******************************\n"; | |
cout << " 1 - Play Game."<< endl; | |
cout << " 2 - Manage My Team "<< endl; | |
cout << " 3 - Market."<< endl; | |
cout << " 4 - Exit."<< endl; | |
cout << " Enter your choice and press return: "; | |
cin >> choice; | |
} // end of do while | |
while (choice >'5' || choice<'0' ); | |
switch (choice) | |
{ | |
case '1': | |
{ | |
break; | |
} // end case 1 play game | |
case '2': | |
{ | |
break; | |
}//end case 2 my team | |
case '3':{ | |
cout << "Market BallManager"<< endl; | |
break; | |
}// end case 3 market | |
case '4':{ | |
cout << "End of Program."<< endl; | |
break; | |
} | |
default: | |
{ | |
cout << "Not a Valid Choice."<< endl; | |
cout << "Choose again."<< endl; | |
goto Game; | |
break; | |
}// end default case | |
return 0; | |
}// end of menu | |
}// end of MenuGame function |