[C++] Restart your computer

flAmingw0rm

Member
Reputation
0
Simple program which restart your computer in 10 seconds.

Code:
#include <iostream>
 
using namespace std;
 
int main ()
{
          system("shutdown -s -t 10");
          system("PAUSE");
 
          return 0;
}
 
lol:) nice anyways:)

Cheers
 
Hmm , why so difficult using C++ if you can even write it in one simple line in a batch file :D. Thanks for sharing anyway.
 
GAMEKINGZ said:
Hmm , why so difficult using C++ if you can even write it in one simple line in a batch file :D. Thanks for sharing anyway.

Just an example. :)
 
There's an old saying "You can take many different paths, to get to the same place". Anyways I liked this tutorial, at least it strays away from the stupid "Hello World" people so casually post. That tutorial is still good, but people gotta' learn to switch it up..
 
Back
Top