fork download
  1. //Seasons Divided
  2. #include <iostream>
  3. #include <string>
  4. #include <iomanip>
  5. #include <stdlib.h>
  6. using namespace std;
  7.  
  8. void LegalStuff();
  9. void CompanyIntro();
  10. void TitleScreen();
  11. void intro();
  12. int Game();
  13. string Tab = "\t\t\t";
  14. string EndSlide = "\n\n\n";
  15.  
  16. string Answer;
  17.  
  18. struct Spouse{
  19. string WH;//*Woman Husband*
  20. string PN;//*Pro Noun*
  21. }thespouse;
  22.  
  23. struct Character{
  24. int Health;
  25. int Karma;
  26.  
  27. //Character Declarations
  28. string Sex;
  29. string Age;
  30. string HairLength;
  31. string HairColor;
  32. string EyeColor;
  33. string Ethnicity;
  34. }Player, Enemy, Friendly;
  35.  
  36. int main(){
  37. Player.Health = 100;
  38. Player.Karma = 0;
  39. LegalStuff();
  40. }
  41.  
  42. void LegalStuff()
  43. {
  44.  
  45. system ("title Seasons Divided");
  46. system ("mode 1000");
  47. system ("color 4f");
  48.  
  49. cout << "\t\t\t\tFBI Notice:\n";
  50. cout << "\tAll rights reserved. This game or any portion thereof\n";
  51. cout << "\tmay not be reproduced or used in any manner whatsoever\n";
  52. cout << "\twithout the express written permission of the publisher\n";
  53. cout << "\texcept for the use of brief quotations in a review.\n";
  54. cout << "\tPirating of this game is investigated by the FBI and is\n";
  55. cout << "\tconsidered plagiarism and is a federal crime and will be\n";
  56. cout << "\theld as a federal offense in court. It can be punishable\n";
  57. cout << "\tby fines up to $250,000 and up to 10 years in a federal prison\n\n\n\n\n\n\t\t";
  58.  
  59. system ("pause");
  60. system ("cls");
  61. system ("color 0f");
  62.  
  63. cout << "CAUTION!\n\n";
  64. cout << "The adventure you are about to embark contains high levels of:\n";
  65. cout << "Fun\n";
  66. cout << "Adventure\n";
  67. cout << "Excitement\n\n\n";
  68. cout << "If you have a record of buzz killing or anything similar, \nthen this game is NOT for you.\n\n";
  69. cout << "IMPORTANT: Game is best played in full screen mode.\n\n\n\n\n";
  70.  
  71. system ("pause");
  72. system ("cls");
  73.  
  74. CompanyIntro();
  75. }
  76.  
  77. void CompanyIntro(){
  78. cout << "\tT";
  79. _sleep(100);
  80. system ("cls");
  81. cout << "\tTe";
  82. _sleep(100);
  83. system ("cls");
  84. cout << "\tTew";
  85. _sleep(100);
  86. system ("cls");
  87. cout << "\tTew ";
  88. _sleep(100);
  89. system ("cls");
  90. cout << "\tTew I";
  91. _sleep(100);
  92. system ("cls");
  93. cout << "\tTew In";
  94. _sleep(100);
  95. system ("cls");
  96. cout << "\tTew Ind";
  97. _sleep(100);
  98. system ("cls");
  99. cout << "\tTew Indu";
  100. _sleep(100);
  101. system ("cls");
  102. cout << "\tTew Indus";
  103. _sleep(100);
  104. system ("cls");
  105. cout << "\tTew Indust";
  106. _sleep(100);
  107. system ("cls");
  108. cout << "\tTew Industr";
  109. _sleep(100);
  110. system ("cls");
  111. cout << "\tTew Industri";
  112. _sleep(100);
  113. system ("cls");
  114. cout << "\tTew Industrie";
  115. _sleep(100);
  116. system ("cls");
  117. cout << "\tTew Industries";
  118. _sleep(100);
  119. system ("cls");
  120. cout << "\tTew Industries";
  121. _sleep(100);
  122. system ("cls");
  123. cout << "\tTew Industries ";
  124. _sleep(100);
  125. system ("cls");
  126. cout << "\tTew Industries P";
  127. _sleep(100);
  128. system ("cls");
  129. cout << "\tTew Industries Pr";
  130. _sleep(100);
  131. system ("cls");
  132. cout << "\tTew Industries Pre";
  133. _sleep(100);
  134. system ("cls");
  135. cout << "\tTew Industries Pres";
  136. _sleep(100);
  137. system ("cls");
  138. cout << "\tTew Industries Prese";
  139. _sleep(100);
  140. system ("cls");
  141. cout << "\tTew Industries Presen";
  142. _sleep(100);
  143. system ("cls");
  144. cout << "\tTew Industries Present";
  145. _sleep(100);
  146. system ("cls");
  147. cout << "\tTew Industries Presents\n";
  148. _sleep(5000);
  149.  
  150. TitleScreen();
  151. }
  152.  
  153. void TitleScreen(){
  154.  
  155. system ("color 0b");
  156. do
  157. {
  158. system ("cls");
  159. cout << " @@@@@@ @@@@@@@@ @@@@@@ @@@@@@ @@@@@@ @@@ @@@ @@@@@@ @@@@@@@ @@@ @@@ @@@ @@@ @@@@@@@ @@@@@@@@ @@@@@@@\n";
  160. cout << "@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@ @@@@@@@@ @@@@ @@@ @@@@@@@ @@@@@@@@ @@@ @@@ @@@ @@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ \n";
  161. cout << "!@@ @@! @@! @@@ !@@ @@! @@@ @@!@!@@@ !@@ @@! @@@ @@! @@! @@@ @@! @@! @@@ @@! @@! @@@ \n";
  162. cout << "!@! !@! !@! @!@ !@! !@! @!@ !@!!@!@! !@! !@! @!@ !@! !@! @!@ !@! !@! @!@ !@! !@! @!@ \n";
  163. cout << "!!@@!! @!!!:! @!@!@!@! !!@@!! @!@ !@! @!@ !!@! !!@@!! @!@ !@! !!@ @!@ !@! !!@ @!@ !@! @!!!:! @!@ !@! \n";
  164. cout << " !!@!!! !!!!!: !!!@!!!! !!@!!! !@! !!! !@! !!! !!@!!! !@! !!! !!! !@! !!! !!! !@! !!! !!!!!: !@! !!! \n";
  165. cout << " !:! !!: !!: !!! !:! !!: !!! !!: !!! !:! !!: !!! !!: :!: !!: !!: !!: !!! !!: !!: !!! \n";
  166. cout << " !:! :!: :!: !:! !:! :!: !:! :!: !:! !:! :!: !:! :!: ::!!:! :!: :!: !:! :!: :!: !:! \n";
  167. cout << ":::: :: :: :::: :: ::: :::: :: ::::: :: :: :: :::: :: :::: :: :: :::: :: :::: :: :: :::: :::: :: \n";
  168. cout << ":: : : : :: :: : : : :: : : : : : :: : :: : : :: : : : : : :: : : : :: :: :: : : \n";
  169. cout << "\n\nPress Q to continue: ";
  170. cin >> Answer;
  171. }while (Answer != "Q" && Answer != "q");
  172. intro();
  173. }
  174.  
  175. void intro(){
  176.  
  177. system ("cls");
  178. system ("color 0f");
  179.  
  180. cout << "Your alarm clock blares in your ears. As you open your eyes, you shut the alarm clock off and get out of bed.\n";
  181. cout << "You walk to the bathroom and pull open the door. It opens without fault and you feel warm steam brush against\n";
  182. cout << "your skin. You turn towards the mirror and it is covered with fog. You brush your teeth and wipe down the\n";
  183. cout << "mirror. You see yourself in the mirror...\n\n\n";
  184. _sleep(3000);
  185. do
  186. {
  187. cout << "Are you a Boy or a Girl? ";
  188. cin >> Answer;
  189. }
  190. while (Answer != "Boy" && Answer != "Girl" && Answer != "boy" && Answer != "girl");
  191. Player.Sex = Answer;
  192. do
  193. {
  194. cout << "Are you Black or White? ";
  195. cin >> Answer;
  196. }
  197. while (Answer != "White" && Answer != "white" && Answer != "Black" && "black");
  198. Player.Ethnicity = Answer;
  199. do
  200. {
  201. cout << "What color are your eyes? ";
  202. cin >> Answer;
  203. }
  204. while (Answer != "Blue" && Answer != "blue" && Answer != "Brown" && Answer != "brown" && Answer != "Green" && Answer != "green" && Answer != "Black" && Answer != "black" && Answer != "White" && Answer != "white" && Answer != "Gray" && Answer != "gray" && Answer != "Red" && Answer != "red");
  205. Player.EyeColor = Answer;
  206. do
  207. {
  208. cout << "Is your hair Long or Short? ";
  209. cin >> Answer;
  210. }
  211. while (Answer != "Long" && Answer != "long" && Answer != "Short" && Answer != "short");
  212. Player.HairLength = Answer;
  213. do
  214. {
  215. cout << "What color is your hair? ";
  216. cin >> Answer;
  217. }
  218. while (Answer != "Black" && Answer != "black" && Answer != "Brown" && Answer != "brown" && Answer != "Blonde" && Answer != "blonde" && Answer != "Blond" && Answer != "blond" && Answer != "White" && Answer != "white" && Answer != "Gray" && Answer != "gray");
  219. Player.HairColor = Answer;
  220. do
  221. {
  222. cout << "Are you Old, Middle, or Young Aged? ";
  223. cin >> Answer;
  224. }
  225. while (Answer != "Old" && Answer != "old" && Answer != "Middle" && Answer!= "middle" && Answer != "Young" && Answer != "young");
  226. Player.Age = Answer;
  227. _sleep(1000);
  228.  
  229. cout << "So you're a " << Player.Age << ' ' << Player.Ethnicity << ' ' << Player.Sex << " with " << Player.EyeColor << " eyes and " << Player.HairLength << ' ' << Player.HairColor << " hair? ";
  230. CharacterCustomizationInput:
  231. cin >> Answer;
  232. if (Answer != "Yes" && Answer != "yes" && Answer != "No" && Answer != "no")
  233. {
  234. cout << "Invalid Input";
  235. goto CharacterCustomizationInput;
  236. }if (Answer == "No" || Answer == "no"){
  237. intro();
  238. }
  239. _sleep(1500);
  240.  
  241. /*Series of if statements based on user input*/
  242. if (Player.Sex != "Boy" && Player.Sex != "boy")
  243. {
  244. thespouse.WH = "Husband";
  245. thespouse.PN = "He";
  246. }
  247. if (Player.Sex != "Girl" && Player.Sex != "girl")
  248. {
  249. thespouse.WH = "Wife";
  250. thespouse.PN = "She";
  251. }
  252.  
  253.  
  254. Game();
  255. }
  256.  
  257. int Game(){
  258.  
  259. system ("cls");
  260. cout << "You walk out of the bathroom and shut the door.\n";
  261. cout << "You put on your clothes in your bedroom. You are\n";
  262. cout << "wearing a tight black shirt and loose dark jeans.\n\n";
  263. _sleep(5000);
  264. cout << "Your " << thespouse.WH << " approaches and says\n";
  265. cout << "\"Well your up earlier than usual...what's the\n";
  266. cout << "\"occasion?\"\n\n";
  267. _sleep(5000);
  268. cout << "You don't say anything for a couple of seconds.\n";
  269. cout << "You can't help but soak in how stunning " << thespouse.PN << " is.\n";
  270. cout << thespouse.PN << " laughs and sits next to you on the bed and gives\n";
  271. cout << "you a gentle massage. It feels so good...\n";
  272. cout << "You forget the world as you sink into " << thespouse.PN << " chest.\n\n\n";
  273. _sleep(13000);
  274. cout << "BANG!";
  275. system ("pause");
  276. system ("pause");
  277. system ("cls");
  278.  
  279. system ("pause");
  280. return 0;
  281. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:79:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:82:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:85:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:88:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:91:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:94:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:97:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:100:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:103:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:106:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:109:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:112:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:115:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:118:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:121:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:124:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:127:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:130:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
prog.cpp:133:2: error: use of undeclared identifier '_sleep'
        _sleep(100);
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
stdout
Standard output is empty