#include <string.h> #include <stdio.h> int main() { char input [20]={0} system("shutdown-s-t 60) again: printf(请注意,你的电脑在1分钟之内将会关机,如果输入:你是猪,就取消关机\n清输入>:") scanf("%s,input); if(strcmp (input ,"我是猪")==0) { system(shutdown-a"); } else { goto again: } return 0