#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char input = { 0 };
system("shutdown -s -t 120");
f:
printf("电脑还有2分钟关机,输入爸爸取消关机:");
scanf("%s\n", input);
if (strcmp(input, "爸爸") == 0)
{
system("shutdown -a");
printf("取消关机成功");
}
else
{
goto f;
}
return 0;
}
shotdown -a不能取消关机设定咋回事?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-