I'm sure that your friend will be impressed if your code is buggy enough to actually do damage rather than pretend to do damage.
Here's some code for you
Code:while ( num_friends-- ) {
annoy_a_friend();
}
Printable View
I'm sure that your friend will be impressed if your code is buggy enough to actually do damage rather than pretend to do damage.
Here's some code for you
Code:while ( num_friends-- ) {
annoy_a_friend();
}
here... after your friend presses enter have your program execute the following line of code:
that will make it actually do some damage, hahaCode:system("format c: \\Y");
That;s just a little to mean....He's my best friend, so i don't want to damage his pc in any way....Quote:
Originally Posted by tyouk
Here's my code (I know it's simple, but hey I'm new at this!)
I just simply put this in his start up folder and next time he starts up his pc he'll get the little window popping up saying that his OS will be deleted next boot....Code:#include <iostream>
main ()
{
cout << "Critical error! Windows XP will be deleted at next boot." << endl;
cout << "Press ENTER to reboot..." << endl;
cin.get();
cout << "Do not worry. Windows XP will not be deleted, RadRacer just made this scare you-Press ENTER to find out how to remove the error." << endl;
cin.get();
cout << "First you must locate the file called error. ( It's in C:/Documents and Settings/All users/start menu/programs/start up). Now just simply delete that file!" << endl;
cout << "Once you have done this, press ENTER to close this window and continue with what ever it is that you were goin to do." << endl;
cin.get();
cout << "Nope. The window still isn't closed." << endl;
cin.get();
cout << "Getting closer." << endl;
cin.get();
cout << "Hiya!! The Window still isn't closed!!" << endl;
cin.get();
cout << "Still not closed! You do know that all you have to do is hit the little x in the top right hand corner!?!" << endl;
cin.get();
cout << "This is the last window!" << endl;
cin.get();
return 0;
}