#include<iostream.h>
#include<windows.h>
int main()
{
using namespace std;
system("shutdown/s/t 15");
cout<<"your machine will shut down in fifteen seconds,would you like to abort?(Y for yes"<<"n for no"<<endl<<endl<<":";
string Answer;
cin>>Answer;
system("cls");
if(answer =="y")
{
system("shutdown/y");
cout<<"shutdown procedure has been aborted"<<endl<<endl;
}
else if(answer=="n")
}
cout<<"continuing shutdown procedure"<<endl<<endl;
}
cin.ignore();
cin.get();
cin.clear();
return 0;
}
No comments:
Post a Comment