You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
309 B
C++
14 lines
309 B
C++
5 years ago
|
/* for windows 7 only */
|
||
|
#include < iostream.h >
|
||
|
#include < stdlib.h >
|
||
|
|
||
|
main()
|
||
|
{
|
||
|
char ch;
|
||
|
cout<<"Do you want to shutdown your computer now (y/n)\n";
|
||
|
cin>>ch;
|
||
|
if (ch == 'y' || ch == 'Y')
|
||
|
system("C:\\WINDOWS\\System32\\shutdown /s");
|
||
|
/*shutdown command*/
|
||
|
return 0;
|
||
|
}
|