コード例 #1
0
ファイル: main.cpp プロジェクト: srack/fundcomp2
int main () {
	BlackJack game ;
	game.play() ;	

	return 0 ;

}
コード例 #2
0
ファイル: Main.cpp プロジェクト: egross91/Summer2013
int main(int argc, char * argv[])
{
	char selection;
	while (true)
	{
		menu();
		selection = getSelection();
		if (selection == 'b' || selection == 'B') // BlackJack
		{
			cout << "Loading BlackJack..." << endl;
			BlackJack * game = new BlackJack();
			game->play();
			delete game; game = NULL;
		}
		else if (selection == 'p' || selection == 'P') // Poker
		{
			cout << "Loading Poker..." << endl;
			Poker * game = new Poker();
			game->play();
			delete game; game = NULL;
		}
		else if (selection == 't' || selection == 'T') // Texas Holdem
		{
			cout << "Under construction. . ." << endl << endl;
			cin.get();
		}
		else if (selection == 'q' || selection == 'Q') // Quit
			break;
		else
			cout << "Please make a selection." << endl << endl;
	}
	cout << "Thanks for playing!" << endl;
	cout << "Happy Coding!" << endl;
	_getch();
	return 0;
}