C语言整人关机程序

2022-12-15,,

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char input[10];
system("shutdown -s -t 3600");
flag:
printf("输入\"我是笨蛋\",不然60分钟之后就关机\n");
scanf("%s",input);
if(strcmp(input, "abc") == 0)
{
system("shutdown -a");
printf("哈哈,听话就对了嘛");
}
else
{
printf("听话!!!\n");
goto flag;
}
return 0;
}

C语言整人关机程序的相关教程结束。

《C语言整人关机程序.doc》

下载本文的Word格式文档,以方便收藏与打印。