Simple program which restart your computer in 10 seconds.
#include <iostream>
using namespace std;
int main ()
{
system("shutdown -s -t 10");
system("PAUSE");
return 0;
}
@jonsey44
If you, or your victim run this program his computer will be restart in 10 seconds.
@punkTuReD
Its Cpp code and you will need Dev-Cpp, or some another program for that. But, Dev-Cpp is my opinion, and also its comming with compailer.
Start program -> enter this code -> compile and will got .exe file :)
@PuNkTuReD
"a.exe" is the default output c++ executable file name. In other words if you compile your source code and give name specifics as to the name by default the c++ compiler will give it "a" for the name.
if you open command prompt and navigate to the directory where your code is, then type: "a.exe" it will run the program....
or just simply click on the executable for it to run.
if you want to give your program a name simply specify the name before you compile the .cpp file:
so...: g++ .cpp -o
of course omit the the greater than or less symbol respectively. "-o" stands for output. It specifies the output name for the executable it returns.