Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
462662ec42
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
72 lines (49 sloc) 1.61 KB
#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