Prank your friends [C++]
Posted: Wed Jul 27, 2011 12:45 am
Hey guys here is a nubish example for a Win32 Console Application, will act like an "ant virus" but its just a prank. Code:
Code: Select all
#include <iostream>
#include <conio.h>
using namespace std;
int main () {
Scan:
cout << "Welcome do you wish to scan your pc now? (Y/N)" << endl;
char cResponse;
cin >> cResponse;
if(cResponse == 'y') {
cout << "Scan is starting..." << endl;
int i;
for(i = 0; i < 10000; i++) {
cout << "Virus encounted: " << i << endl;
}
cout << "Start clean up?" << endl;
_getch();
do {
cout << "ERROR FOUND PLEASE SHUT DOWN YOUR PC... WINDOWS FAILING AHHH" << endl;
}while(i == 10000);
} else if (cResponse == 'n') {
cout << "Fuck you :)" << endl;
_getch();
return 0;
} else {
cout << "Fucking Nigger i told you Y/N not any other char" << endl;
goto Scan;
}
return 0;
}