Advertisement
Guest User

Untitled

a guest
Jan 31st, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. void GMenu::SMenu()
  2. {
  3.  
  4. system("cls");
  5. std::cout << "Welcome to World of Kings!" << std::endl;
  6. std::cout << "1.Create Account!" << std::endl;
  7. std::cout << "2.Start Game" << std::endl;
  8. std::cout << "3.Exit" << std::endl;
  9. cin >> input;
  10.  
  11. switch(input)
  12. {
  13. case 1:
  14. CreateAccount();
  15. break;
  16. case 2:
  17. break;
  18.  
  19. }
  20.  
  21.  
  22. if(GameStatus == true)
  23. {
  24.  
  25. system("cls");
  26. std::cout << "Welcome to World of Kings!" << std::endl;
  27. std::cout << "2.Start Game" << std::endl;
  28. std::cout << "3.Exit" << std::endl;
  29. cin >> input;
  30.  
  31. switch(input)
  32. {
  33.  
  34. case 1:
  35. break;
  36. }
  37.  
  38. }
  39.  
  40. }
  41.  
  42. void GMenu::CreateAccount()
  43. {
  44. system("cls");
  45. std::cout << "Please Enter a Username:" << std::endl;
  46. cin.ignore(1);
  47. getline(cin,username);
  48. std::cout << "Please Enter a Password: " << std::endl;
  49. getline(cin,password);
  50.  
  51. GameStatus = true;
  52.  
  53. SMenu();
  54.  
  55.  
  56.  
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement