#include <cstdlib>
02
#include <iostream>
03
using namespace std;
04
int main()
05
{
06
int i;
07
cout<<"1、关机"<<endl
08
<<"2、重启"<<endl
09
<<"3、注销"<<endl
10
<<"4、休眠"<<endl
11
<<"5、取消"<<endl;
12
cin>>i;
13
switch(i)
14
{
15
case 1:{
16
int j;
17
cout<<"1、关机"<<endl
18
<<"2、定时关机"<<endl
19
<<"3、取消定时关机"<<endl
20
<<"4、取消"<<endl;
21
cin>>j;
22
switch(j)
23
{
24
case 1:
25
system("shutdown -s -t 0");
26
break;
27
case 2:{
28
int t;
29
cout<<"1、30分钟后关机"<<endl
30
<<"2、60分钟后关机"<<endl
31