#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
char intput[20];
printf("电脑在一分钟后关机\n");
system("shutdown -s -t 60");
a:
printf("请输入:I love you \n");
scanf("%s",intput);
if(strcmp(intput,"I love you")==0)
{
system("shutdown -a");
}
else
{
goto a;
}
return 0;
}
原文:http://10919090.blog.51cto.com/10909090/1716799