Bored programming

#include <time.h>

#include <stddef.h>

#include <iostream>

#include <string>

 

using namespace std;

 

int main(void) {

cout << “World domination — Program Loading” << endl;

for(long i=0;i<110000000;i++) {

if(i%10000000 == 0) {

cout << (i/1000000) << ” % complete…” << endl;

for(long j=0;j<10000*((long)rand());j++) {

j++;

for(long k=0;k<10000;k++) if(k==99) j–;

//Dos!

}

}

}

for(long i=0;i<(1+rand()%3)*100000000;i++) {

i++;

do {

i–;

}

while(false);

}

cout << “3 possible intruders detected:” << endl;

cout << ” Scanning intruder properties”;

for(long i=0;i<(1+rand()%3)*30000000;i++) {

i++;

do {

i–;

}

while(false);

}

cout << “.”;

for(long i=0;i<(1+rand()%3)*30000000;i++) {

i++;

do {

i–;

}

while(false);

}

cout << “.”;

for(long i=0;i<(1+rand()%3)*30000000;i++) {

i++;

do {

i–;

}

while(false);

}

cout << “.”;

for(long i=0;i<(1+rand()%3)*30000000;i++) {

i++;

do {

i–;

}

while(false);

}

cout << endl << “WARNING: weapons detected.” << endl << “Eliminate intruders? (Y/N) “;

string s;

cin >> s;

char c = s.at(0);

if(c==’n’ || c==’N’) {

cout << endl << “Terminating program — Please try our World Domination Express pack: only 100,000 ISK for a world of fun!” << endl;

return 0;

}

else if(c!=’y’ && c!=’Y’) {

cout << endl << “Error: incorrect answer.\n Extermination started.” << endl;

cout << c << endl;

return 0;

}

cout << “Intruders eliminated…” << endl;

cout << “Preparing Tachyon Anode Particle Stream I” << endl;

for(long i=0;i<(1+rand()%3)*20000000;i++) {

i++;

do {

i–;

}

while(false);

}

cout << “Targets selected:” << endl;

cout << ” *New Caldari” << endl;

cout << ” *Niyubainen” << endl;

cout << ” *Jita” << endl;

cout << ” *Tama” << endl;

cout << ” *Motsu” << endl;

cout << ” *Kaimon” << endl;

cout << ” *Usi” << endl;

cout << ” *Jeras” << endl << endl;

cout << “Pressing the red button…” << endl;

for(long i=0;i<(1+rand()%3)*30000000;i++) {

i++;

do {

i–;

}

while(false);

}

cout << “Error: buffer overflow. Extra target: ” << endl;

cout << ” *you” << endl;

cout << “You will be assimilated. Resitance is futile.” << endl;

cout << “ERROR: lost carrier.” << endl;

return 0;

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: