Advertisement
Guest User

angelbooy is cool C++

a guest
May 2nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.73 KB | None | 0 0
  1. // i got bored and made this for fun looool
  2.  
  3.  
  4. #include <iostream>
  5. #include <string>
  6. //#include <vector>
  7. // not done with it ok!?!?!/
  8. using namespace std;
  9.  
  10. bool gameYES; // says yes to the game
  11. bool gameNO; // says no
  12. bool logWRONG; // incorrect ha
  13. bool logCORRECT; // we good
  14.  
  15. int main() {
  16.     char letters[] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
  17.                      'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
  18.                      's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };
  19.  
  20.     string user;
  21.     string pass;
  22.     string gameYESst;
  23.     string gameNOst;
  24.     cout << "                   LOG CONSOLE                 " << endl;
  25.     cout << "                 Made by Aiden Yi              " << endl;
  26.     cout << "Username : ";
  27.     cin >> user;
  28.     cout << "Password : ";
  29.     cin >> pass;
  30.     cout << "Logging in" << endl;
  31.     if(user == "aiden" && pass == "yi"){
  32.             logCORRECT = true;
  33.         } else {
  34.                 logWRONG = true;
  35.             }
  36.     if(logCORRECT == true){
  37.             cout << "Welcome " << user << "!" << endl;
  38.             cout << "Wana play a game? [Y/N] : " << endl;
  39.             cin >> gameYESst;
  40.             if(gameYESst == "Y" || gameYESst == "y"){
  41.                     cout << "Alright you chose : " << gameYESst << endl;
  42.                     cout << "Lets load up the game now" << endl;
  43.                     cout << "This game is about choosing a random letter!! YOU ONLY HAVE ONE CHANCE!!!!" << endl;
  44.                 } else {
  45.                         cout << "Either you chose N/n or some other number character :: ERROR 404" << endl;
  46.                     }
  47.         } else if(logWRONG == true){
  48.                 cout << "oh poop its wrong!!!!!" << endl;
  49.             }
  50.     return 0;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement