This is a code of a simple virus, it deletes files without knowledge of the user, and it makes aswome beeping noises in the bios.
This will just delete a blank txt file on your C drive, so first make a file called
file.txt right onto your C drive (C:\file.txt).
next copy and paste this code into your compiler
When you run this Program you should hear a series of beeps (not from speekers from your bios) and it will delete the txt file.
using namespace std;
FreeConsle();//makes the program run without a console so the user has no idea what is about to happen, this is optional.
Beep(800,300); //FOR NOOBS BEEP(frecuince,duration 1000=1 second)
remove("C:\\file.txt"/*YOU MUST use \\ not \ after C:*/);
This could be used to for example to wipe out your system 32, but you would have to write
for every file you want to delete.
YES I DID WRITE THIS, NOT THAT HARD. just because im a choob or whatever doesnt mean that i dont know how to code in c++.