Advertisement
Blizzardo1

Happy trolling :P

Oct 11th, 2012
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.11 KB | None | 0 0
  1. /*
  2.     Random Insult Generator Version 0.2h
  3.     Released under a GPU License
  4.     must provide original and src code.
  5.     Original Creator: user99672@live.com
  6.     Creator Site: http://pastebin.com/N5DC2MKc
  7.     Recreator in C++: blizzardo1@blizzeta.net
  8.  
  9.     About:  I thought I'd troll a really great friend of mine,
  10.             by recreating one of his good programs written in BASIC.
  11. */
  12.  
  13. // We need a few things here to get the program running
  14. #include <stdio.h>
  15. #include <stdlib.h>
  16. #include <iostream>
  17. #include <time.h>
  18. #include <Windows.h>
  19.  
  20. // We need this namespace for Global reasons
  21. using namespace std;
  22.  
  23. // The Randomiser
  24. int r();
  25.  
  26. // Our Subject
  27. char * first[] = { "You are ",
  28.     "Your mom is ",
  29.     "Your dad is ",
  30.     "Your brother is ",
  31.     "Your sister is ",
  32.     "Your grandmother is ",
  33.     "Your grandpa is ",
  34.     "Your husband is ",
  35.     "Your wife is ",
  36.     "Your spouse is "
  37. };
  38.  
  39. // Our Verb
  40. char* second[] = {  "a fucking",
  41.     "a motherfucking",
  42.     "a shitty",
  43.     "a damned",
  44.     "a god-damned",
  45.     "a pissy",
  46.     "a whining",
  47.     "a cock-sucking",
  48.     "a gay-ass",
  49.     "a dog kicking"
  50. };
  51.  
  52. // Our Adjective
  53. char* third[] = { " pussy",
  54.     " wuss",
  55.     " cunt",
  56.     " dick",
  57.     " whore",
  58.     " skank",
  59.     " cheater",
  60.     " liar",
  61.     " bitch",
  62.     " sex offender"
  63. };
  64.  
  65. // Our Color array
  66. const WORD colors[] = {
  67.     0x1A, 0x2B, 0x3C, 0x4D, 0x5E, 0x6F,
  68.         0xA1, 0xB2, 0xC3, 0xD4, 0xE5, 0xF6
  69. };
  70.  
  71. /*
  72.     Function: Main
  73.     Arguments: void
  74.     Returns: 0
  75. */
  76. int main( void ) {
  77.     /*
  78.         We set the Pseudo Random number generator once,
  79.         else it would repeat the same line over again
  80.         for however many re-iterations you specify.
  81.     */
  82.     srand(time(NULL));
  83.    
  84.     // Let's repeat the line with a different sentence and color shall we?
  85.     for(int i = 0; i < 20; i++){
  86.         SetConsoleTextAttribute( GetStdHandle(STD_OUTPUT_HANDLE), colors[r()]);
  87.         cout << first[r()] << second[r()] << third[r()] << endl;
  88.     }
  89.     /*
  90.         At the end of the ForLoop, we break with cin.get();
  91.         to prevent the console from prematurely exiting.
  92.     */
  93.     cin.get();
  94.  
  95.     // 0!
  96.     return 0;
  97. }
  98.  
  99. /*
  100.     Function: R
  101.     Arguments: n/a
  102.     Returns: A Random Number from 1 to 10
  103. */
  104. int r() {
  105.     // Your random number
  106.     return ((rand() % 10));
  107. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement