Advertisement
H-a-y-K

Untitled

Dec 22nd, 2020
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.84 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. const char* ahahaha()
  4. {
  5.     return "ahahaha";
  6. }
  7.  
  8. const char* cry()
  9. {
  10.     return "T_T";
  11. }
  12.  
  13. const char* sudden_shock()
  14. {
  15.     return "ahh o_o";
  16. }
  17.  
  18. const char* nani()
  19. {
  20.     return "n-nani!?";
  21. }
  22.  
  23. const char* gasgasgas()
  24. {
  25.     return "Gas gas gas!\nI'm gonna step on the gas\nTonight I'll fly and be your lover";
  26. }
  27.  
  28. void start_exam(bool &exam_started)
  29. {
  30.     exam_started = true;
  31.     std::cout << "The exam has starteeeeed " << ahahaha();
  32. }
  33.  
  34. bool contemplate_life()
  35. {
  36.     std::cout << "*epic sad music (no Astghik, not a funeral music)*\n"
  37.               << "I failed.... "
  38.               << "My dreams.. my desires.. I failed everything " << cry() << '\n'
  39.               << sudden_shock() << '\n'
  40.               << nani() << '\n'
  41.               << "*realizing something*\n"
  42.               << "*epic music intensifies*\n";
  43.     return true;
  44. }
  45.  
  46.  
  47. bool solve(int question_num)
  48. {
  49.     static bool desperate = true;
  50.  
  51.     if (desperate && question_num < 10)
  52.         solve(question_num+1);
  53.     else if (desperate)
  54.     {
  55.         if (question_num == 10)
  56.             desperate = !contemplate_life();
  57.         std::cout << "omae wa mou shindeiru" << '\n';
  58.         std::cout << "Araqelyan: " << nani() << '\n';
  59.         std::cout << gasgasgas() << '\n';
  60.         solve(1);
  61.     }
  62.     else
  63.     {
  64.         std::cout << "Solved " << question_num << '\n';
  65.         if (question_num < 10)
  66.             solve(question_num+1);
  67.     }
  68.  
  69.     return desperate;
  70. }
  71. int main()
  72. {
  73.     bool nervous = true;
  74.     bool suicidal_thoughts = false;
  75.     bool exam_started = false;
  76.  
  77.     start_exam(exam_started);
  78.  
  79.     int question_num = 1;
  80.  
  81.     while (exam_started)
  82.     {
  83.         suicidal_thoughts = solve(question_num);
  84.         if (!suicidal_thoughts)
  85.             break;
  86.     }
  87.     std::cout << "*Victory music*";
  88.     nervous = false;
  89. }
  90.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement