Page 1 of 1

Prank your friends [C++]

Posted: Wed Jul 27, 2011 12:45 am
by killman2639
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;
}

Re: Prank your friends [C++]

Posted: Thu Jul 28, 2011 10:20 am
by r0aringdrag0n
u gotta make it so it has a GUI, otherwise people would think "What bullshitty Anti-Virus doesn't have a screen thingy with awesome drawings!?!?"

Re: Prank your friends [C++]

Posted: Thu Jul 28, 2011 6:57 pm
by killman2639
r0aringdrag0n wrote:u gotta make it so it has a GUI, otherwise people would think "What bullshitty Anti-Virus doesn't have a screen thingy with awesome drawings!?!?"
Would have to use Win32 Application wich is "hard" and takes time

Re: Prank your friends [C++]

Posted: Thu Jul 28, 2011 8:10 pm
by Motherfat
Try using msdn creating win32 based and then start changing some shit