• Welcome to ForumKorner!
    Join today and become a part of the community.

[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;
}
 

Skrewdriver

Member
Reputation
0
lol:) nice anyways:)

Cheers
 
Reputation
0
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.
 

flAmingw0rm

Member
Reputation
0
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. :)
 

Cam G

Member
Reputation
0
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..
 
Top