#include #include #include #include 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--; //Niks! } } } 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 $99 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 particle beam accelerator NK3000" << endl; for(long i=0;i<(1+rand()%3)*20000000;i++) { i++; do { i--; } while(false); } cout << "Targets selected:" << endl; cout << " *New York" << endl; cout << " *Washington" << endl; cout << " *London" << endl; cout << " *Paris" << endl; cout << " *Moscow" << endl; cout << " *Mumbai" << endl; cout << " *Berlin" << endl; cout << " *Venice" << 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; }