Advertisement
Psylock524

DP E2

Feb 10th, 2012
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.53 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. bool getUpEarly;
  7.  
  8. int main()
  9. {  
  10.     void shittyTypist();
  11.  
  12.     char getUpPlan;
  13.     cout << "Are you planning on waking up early? Y/N: ";
  14.     cin >> getUpPlan;
  15.  
  16.     if (getUpPlan == 'Y' || getUpPlan == 'y')
  17.     {
  18.         char tired;
  19.         cout << "Are you tired yet? Y/N: ";
  20.         cin >> tired;
  21.  
  22.         if (tired == 'Y' || tired == 'y')
  23.         {
  24.             cout << "How can you wake up on time when you're so tired?";
  25.             getUpEarly = false;
  26.         }
  27.         else if (tired == 'N' || tired == 'n')
  28.         {
  29.             char theInternetIsReal;
  30.             cout << "Does reddit/the internet still exist? Y/N: ";
  31.             cin >> theInternetIsReal;
  32.  
  33.             if (theInternetIsReal == 'Y' || theInternetIsReal == 'y')
  34.             {
  35.                 cout << "You stay up all night on the internet.";
  36.                 getUpEarly = false;
  37.             }
  38.             else if (theInternetIsReal == 'N' || theInternetIsReal == 'n')
  39.             {
  40.                 cout << "Why get up early if the world is in total chaos?";
  41.                 getUpEarly = false;
  42.             }
  43.             else
  44.             {
  45.                 shittyTypist();
  46.             }
  47.         }
  48.         else
  49.         {
  50.             shittyTypist();
  51.         }
  52.     }
  53.     else if (getUpPlan == 'N' || getUpPlan == 'n')
  54.     {
  55.         getUpEarly = false;
  56.     }
  57.     else
  58.     {
  59.         shittyTypist();
  60.     }
  61.  
  62.  
  63.     if (getUpEarly == true)
  64.     {
  65.         cout << endl << "You must have cheated.";
  66.     }
  67.     else if (getUpEarly == false)
  68.     {
  69.         cout << endl << "You wake up late.";
  70.     }
  71.  
  72.     cout << endl << endl << "Enter anything to quit: ";
  73.     string quit; cin >> quit;
  74.     return 0;
  75. }
  76.  
  77. void shittyTypist()
  78. {
  79.     cout << "You should probably sleep more if you can't type a single letter.";
  80.     getUpEarly = false;
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement