/*
Random Insult Generator Version 0.2h
Released under a GPU License
must provide original and src code.
Original Creator: [email protected]
Creator Site: http://pastebin.com/N5DC2MKc
Recreator in C++: [email protected]
About: I thought I'd troll a really great friend of mine,
by recreating one of his good programs written in BASIC.
*/
// We need a few things here to get the program running
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <time.h>
#include <Windows.h>
// We need this namespace for Global reasons
using namespace std;
// The Randomiser
int r();
// Our Subject
char * first[] = { "You are ",
"Your mom is ",
"Your dad is ",
"Your brother is ",
"Your sister is ",
"Your grandmother is ",
"Your grandpa is ",
"Your husband is ",
"Your wife is ",
"Your spouse is "
};
// Our Verb
char* second[] = { "a fucking",
"a motherfucking",
"a shitty",
"a damned",
"a god-damned",
"a pissy",
"a whining",
"a cock-sucking",
"a gay-ass",
"a dog kicking"
};
// Our Adjective
char* third[] = { " pussy",
" wuss",
" cunt",
" dick",
" whore",
" skank",
" cheater",
" liar",
" bitch",
" sex offender"
};
// Our Color array
const WORD colors[] = {
0x1A, 0x2B, 0x3C, 0x4D, 0x5E, 0x6F,
0xA1, 0xB2, 0xC3, 0xD4, 0xE5, 0xF6
};
/*
Function: Main
Arguments: void
Returns: 0
*/
int main( void ) {
/*
We set the Pseudo Random number generator once,
else it would repeat the same line over again
for however many re-iterations you specify.
*/
srand(time(NULL));
// Let's repeat the line with a different sentence and color shall we?
for(int i = 0; i < 20; i++){
SetConsoleTextAttribute( GetStdHandle(STD_OUTPUT_HANDLE), colors[r()]);
cout << first[r()] << second[r()] << third[r()] << endl;
}
/*
At the end of the ForLoop, we break with cin.get();
to prevent the console from prematurely exiting.
*/
cin.get();
// 0!
return 0;
}
/*
Function: R
Arguments: n/a
Returns: A Random Number from 1 to 10
*/
int r() {
// Your random number
return ((rand() % 10));
}
Comments
0 B
|👍
/👎