Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. /*
  2. First Program
  3. Introduction to C++
  4. By: Rohin Adalja
  5. Date: Oct 25th, 2010
  6. */
  7.  
  8.  
  9. #include <cstdlib>
  10. #include <iostream>
  11. #include <windows.h>
  12. #include <string>
  13.  
  14. using namespace std;
  15.  
  16. int main(int argc, char *argv[])
  17. {
  18.  
  19. //Declaring Variable
  20. int loop = 700, x=5;
  21. string name, gender="";
  22.  
  23. cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\tPress ANY key to begin ._.";
  24. system("PAUSE>NULL");
  25. system("cls");
  26. cout<<" \n\nrohin";
  27. Sleep(500);
  28.  
  29. cout<<" is";
  30. Sleep(500);
  31.  
  32. cout<<" back";
  33. Sleep(500);
  34.  
  35.  
  36. cout<<"\n\n\nT";
  37. Sleep(200);
  38.  
  39. cout<<"h";
  40. Sleep(200);
  41.  
  42. cout<<"e";
  43. Sleep(200);
  44.  
  45. cout<<" ";
  46. Sleep(200);
  47.  
  48. cout<<"l";
  49. Sleep(200);
  50.  
  51. cout<<"e";
  52. Sleep(200);
  53.  
  54. cout<<"g";
  55. Sleep(200);
  56.  
  57. cout<<"a";
  58. Sleep(200);
  59.  
  60. cout<<"c";
  61. Sleep(200);
  62.  
  63. cout<<"y";
  64. Sleep(200);
  65.  
  66. cout<<" ";
  67. Sleep(200);
  68.  
  69. cout<<"h";
  70. Sleep(200);
  71.  
  72. cout<<"a";
  73. Sleep(200);
  74.  
  75. cout<<"s";
  76. Sleep(200);
  77.  
  78. cout<<" ";
  79. Sleep(1000);
  80.  
  81. cout<<"r";
  82. Sleep(100);
  83.  
  84. cout<<"e";
  85. Sleep(100);
  86.  
  87. cout<<"t";
  88. Sleep(100);
  89.  
  90. cout<<"u";
  91. Sleep(100);
  92.  
  93. cout<<"r";
  94. Sleep(100);
  95.  
  96. cout<<"n";
  97. Sleep(100);
  98.  
  99. cout<<"e";
  100. Sleep(100);
  101.  
  102. cout<<"d";
  103. Sleep(600);
  104.  
  105. cout<<".";
  106. Sleep(600);
  107.  
  108. cout<<".";
  109. Sleep(600);
  110.  
  111. cout<<".";
  112. Sleep(2000);
  113.  
  114.  
  115.  
  116. cout<<"\n\n\n\n\n";
  117.  
  118. system ("cls");
  119.  
  120. while (loop != 5)
  121. {
  122.  
  123. cout<<"0";
  124.  
  125.  
  126. cout<<"1";
  127. Sleep(x);
  128.  
  129. cout<<"0";
  130.  
  131.  
  132. cout<<"1";
  133.  
  134.  
  135. cout<<"1";
  136.  
  137.  
  138. loop = loop -1;
  139. x=x+10;
  140. if (x>=50)
  141. {
  142. x = 0;
  143. }
  144.  
  145.  
  146.  
  147.  
  148.  
  149. }
  150.  
  151.  
  152. system("cls");
  153.  
  154.  
  155. cout<<"What is your name?\nMy Name is: ";
  156. cin >> name;
  157.  
  158.  
  159. while (gender!="m" && gender!="work" && gender!="f" && gender!="M"&& gender!="F"&& gender!="male"&& gender!="female"&& gender!="Male" && gender!="Female")
  160.  
  161. {
  162.  
  163. cout<<"What is your gender? Please enter M or F... " <<endl;
  164. cin>> gender;
  165.  
  166. //cin.ignore(100,'\n');
  167. //getline(cin,name);
  168.  
  169. }
  170.  
  171. system("cls");
  172.  
  173. cout<<"Welcome to the FBI Database, ";
  174. if (gender == "m"||gender == "M"||gender == "male"||gender == "Male")
  175.  
  176. {
  177. cout<<"Mr. ";
  178. }
  179.  
  180. else if (gender == "f"||gender == "F"||gender == "female"||gender == "Female")
  181.  
  182. {
  183. cout<<"Ms. ";
  184. }
  185.  
  186. // else if (gender == "work")
  187. //
  188. // {
  189. // system("cls");
  190. // cout<<"Integer 1 divided by Integer 3 and saved in an integer variable";
  191. // int1/int3 = intAns
  192. // }
  193. //
  194. cout<<name;
  195.  
  196. cout<<"\n\n\nSEARCHING\n\nYOU ARE A TERRORIST\n\n\n\n\n\n";
  197.  
  198. system("PAUSE");
  199. return EXIT_SUCCESS;
  200. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement