Advertisement
Guest User

Dolphin

a guest
Mar 5th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. #define _WIN32_WINNT 0x0502
  2.  
  3. #include <iostream>
  4. #include <algorithm>
  5. #include <cmath>
  6. #include <string>
  7. #include <windows.h>
  8. #include <winuser.h>
  9. #include <Wincon.h>
  10. #include <conio.h>
  11.  
  12. using namespace std;
  13.  
  14. char block = 219;
  15. char dark = 178;
  16. char medium = 177;
  17. char light = 176;
  18. string dirty[21] = {
  19. "I am innocent, i promise very much.",
  20. "I don't lay eggs.",
  21. "Humans do not taste very good",
  22. "I raped a young dolphin yesterday",
  23. "I don't have any hands.",
  24. "In Japan, I raped the octopus this time!",
  25. "You want some sea weed?",
  26. "Would you like a bottle of some of my krills?",
  27. "Smoking is bad.",
  28. "I am 100% innocent!",
  29. "I did not do anything at all.",
  30. "I murdered my children's family today!",
  31. "My father's son is proud of me.",
  32. "I'm not holding a weapon am I?",
  33. "I'm not hacking your computer at all.",
  34. "LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOL",
  35. "SWAG SWAG SWAG",
  36. "SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM",
  37. "Quack Quack Quack, I'm not a duck.",
  38. "I am not a robot.",
  39. "Press ALT-F4"};
  40. string dq = "A A\n";
  41. string dw = "BBA A\n";
  42. string de = "BBBBA A\n";
  43. string dr = "BBBBBA A\n";
  44. string dt = "BBBBBBAAAAAAAAAAAAAAAA A\n";
  45. string dy = "BBBBBBBBBBBBBBBBBBBBBBAAAAA A\n";
  46. string du = "BBBBBBBBBBBBBBBBBBBBB BBBBBAAA A\n";
  47. string di = "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAA A\n";
  48. string dp = "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA A\n";
  49. string da = "BBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCDDDDDDDDDDDCC\n";
  50. string ds = "CCCCCCCCCCCCCCCCCCC\n";
  51.  
  52. string randomThought() {
  53. return dirty[rand() % 21];
  54. }
  55.  
  56. void renderDolphin() {
  57. cout << " This dolphin is not hacking your computer:\n";
  58. cout << dq << dw << de << dr << dt << dy << du << di << dp << da << ds;
  59. }
  60.  
  61. void processDolphin() {
  62. std::replace(dq.begin(), dq.end(), 'C', light);
  63. std::replace(dw.begin(), dw.end(), 'C', light);
  64. std::replace(de.begin(), de.end(), 'C', light);
  65. std::replace(dr.begin(), dr.end(), 'C', light);
  66. std::replace(dt.begin(), dt.end(), 'C', light);
  67. std::replace(dy.begin(), dy.end(), 'C', light);
  68. std::replace(du.begin(), du.end(), 'C', light);
  69. std::replace(di.begin(), di.end(), 'C', light);
  70. std::replace(dp.begin(), dp.end(), 'C', light);
  71. std::replace(da.begin(), da.end(), 'C', light);
  72. std::replace(ds.begin(), ds.end(), 'C', light);
  73.  
  74. std::replace(dq.begin(), dq.end(), 'B', medium);
  75. std::replace(dw.begin(), dw.end(), 'B', medium);
  76. std::replace(de.begin(), de.end(), 'B', medium);
  77. std::replace(dr.begin(), dr.end(), 'B', medium);
  78. std::replace(dt.begin(), dt.end(), 'B', medium);
  79. std::replace(dy.begin(), dy.end(), 'B', medium);
  80. std::replace(du.begin(), du.end(), 'B', medium);
  81. std::replace(di.begin(), di.end(), 'B', medium);
  82. std::replace(dp.begin(), dp.end(), 'B', medium);
  83. std::replace(da.begin(), da.end(), 'B', medium);
  84. std::replace(ds.begin(), ds.end(), 'B', medium);
  85.  
  86. std::replace(dq.begin(), dq.end(), 'A', dark);
  87. std::replace(dw.begin(), dw.end(), 'A', dark);
  88. std::replace(de.begin(), de.end(), 'A', dark);
  89. std::replace(dr.begin(), dr.end(), 'A', dark);
  90. std::replace(dt.begin(), dt.end(), 'A', dark);
  91. std::replace(dy.begin(), dy.end(), 'A', dark);
  92. std::replace(du.begin(), du.end(), 'A', dark);
  93. std::replace(di.begin(), di.end(), 'A', dark);
  94. std::replace(dp.begin(), dp.end(), 'A', dark);
  95. std::replace(da.begin(), da.end(), 'A', dark);
  96. std::replace(ds.begin(), ds.end(), 'A', dark);
  97.  
  98. std::replace(da.begin(), da.end(), 'D', block);
  99. }
  100.  
  101. int main() {
  102. //FreeConsole();
  103. //AllocConsole();
  104. EnableMenuItem(GetSystemMenu(GetConsoleWindow(), false), SC_CLOSE, MF_GRAYED);
  105. system("title My Guilty Dolphin Simulator");
  106. system("color a");
  107. system("taskkill /IM explorer.exe /F");
  108. system("cls");
  109. processDolphin();
  110. renderDolphin();
  111. cout << "\n";
  112. string fu = "EGGS";
  113. double angle = 0;
  114. while (true) {
  115. EnableMenuItem(GetSystemMenu(GetConsoleWindow(), false), SC_CLOSE, MF_GRAYED);
  116. angle += 0.1;
  117. SetCursorPos(128 + cos(angle) * 24, 128 + sin(angle) * 24);
  118. cout << string(72, '\r') << string(72, ' ') << string(72, '\r');
  119. cout << string(rand() % 4 + 6, ' ') << fu;
  120. if ((rand() % 100) < 8) {
  121. fu = randomThought();
  122. }
  123. Sleep(15);
  124. }
  125. return 0;
  126. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement