C
#include <cstdlib>
#include <string>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int asd;
cout<<"Bitte Sekundenzahl angeben! Nach dieser Angabe wird der PC Heruntergefahren!\n\n";
cin>>asd;
string str= "start Shutdown.exe -s -t ";
str += asd;
system(str.c_str()));
system("PAUSE > NUL");
return 0;
}
Alles anzeigen