qub1t

Finals

Feb 19th, 2021
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. string name;
  9. cout << "What is your name?" << endl;
  10. cin >> name;
  11. cout << name << endl;
  12. string sampleString = "Dos Reyes\n";
  13. bool studying;
  14. cout << "Are you studying?(True or False)" << endl;
  15. cin >> studying;
  16. if (studying == false)
  17. {
  18. cout << "I will study now\n" << endl;
  19. }
  20. else
  21. {
  22. cout << "I'll pass this semester\n"<< endl;
  23. }
  24.  
  25. int i;
  26. cin >> i;
  27.  
  28. switch (i)
  29. {
  30. case 1:
  31. cout << "I'll pass this semester\n" << endl;
  32. break;
  33. case 2:
  34. cout << "I'll study more next time\n" << endl;
  35. break;
  36. }
  37.  
  38. while (i > 0)
  39. {
  40. i--;
  41. }
  42.  
  43. for (int x = 0; x <= 5; x++)
  44. {
  45. cout << "I'll pass this sem\n" << endl;
  46. }
  47.  
  48. string mainHeroML[3];
  49. mainHeroML[3] = {"Fanny", "Cecillion"< "Ling"};
  50.  
  51. return 0;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment