Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void GMenu::SMenu()
- {
- system("cls");
- std::cout << "Welcome to World of Kings!" << std::endl;
- std::cout << "1.Create Account!" << std::endl;
- std::cout << "2.Start Game" << std::endl;
- std::cout << "3.Exit" << std::endl;
- cin >> input;
- switch(input)
- {
- case 1:
- CreateAccount();
- break;
- case 2:
- break;
- }
- if(GameStatus == true)
- {
- system("cls");
- std::cout << "Welcome to World of Kings!" << std::endl;
- std::cout << "2.Start Game" << std::endl;
- std::cout << "3.Exit" << std::endl;
- cin >> input;
- switch(input)
- {
- case 1:
- break;
- }
- }
- }
- void GMenu::CreateAccount()
- {
- system("cls");
- std::cout << "Please Enter a Username:" << std::endl;
- cin.ignore(1);
- getline(cin,username);
- std::cout << "Please Enter a Password: " << std::endl;
- getline(cin,password);
- GameStatus = true;
- SMenu();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement