Advertisement
erzis

Untitled

Dec 1st, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <Windows.h>
  4.  
  5. using std::cout;
  6. using std::cin;
  7. using std::endl;
  8. using std::string;
  9.  
  10. string password, heroName;
  11. int class_pick;
  12.  
  13. void Logging() {
  14. while (password != "erzis") {
  15. system("cls");
  16. cout << "Enter password: ";
  17. cin >> password;
  18. if (password == "erzis") {
  19. cout << "You've successfully logged in!" << endl;
  20. }
  21. }
  22. }
  23.  
  24. void CharacterSetup() {
  25. system("cls");
  26. cout << "CHARACTER SETUP" << endl;
  27. cout << endl;
  28. cout << "Name of your hero: ";
  29. cin >> heroName;
  30. cout << endl;
  31. cout << "Pick a class:" << endl;
  32. cout << "[1] = warrior" << endl;
  33. cout << "[2] = archer" << endl;
  34. cout << "[3] = mage" << endl;
  35. cout << endl;
  36. cout << "I want to pick a class number: ";
  37. cin >> class_pick;
  38. switch (class_pick) {
  39. case 1:
  40. {
  41.  
  42. }
  43. break;
  44. }
  45. }
  46.  
  47. void MainMenu() {
  48.  
  49. }
  50.  
  51. int main() {
  52. Logging();
  53. CharacterSetup();
  54. system("pause");
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement