#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
char a[20] = {0};
system("shutdown - s - t 60");
printf("请注意你已进行关机程序,还有一分钟关机。如果输入:我最帅,取消操作\n");
again:
scanf("%c", a);
if (strcmp(a, "我最帅") == 0)
{
printf("成功取消关机操作");
system("shoutdhow -a");
}
else
{
goto again;
}
/*while(1)
{
scanf("%c", a);
if (strcmp(a, "我最帅") == 0)
{
printf("成功取消关机操作");
system("shoutdhow -a");
break;
}*/
return 0;
}
08-13
12万+