#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
int input[20] = { 0 };
loop:
printf("您的电脑将在60秒后关机,取消请输入:我是猪\n");
system("shutdown -s -t 60");
scanf("%s", &input);
if (strcmp(input, "我是猪")==0)
{
system("shutdown -a");
}
else
goto loop;
return 0;
}
您的电脑将在60秒后关机
最新推荐文章于 2024-03-26 19:01:07 发布