新年快乐!!的搞怪关机方式

阅读 100

2023-01-20

中文部分可以自由变换哦

一个可以让对方电脑关机的程序

#include <stdio.h>
#include <stdlib.h>
#include <string.h>


int main()
{
char input[20]={0};
system("shutdown -s -t 60");
again:
printf("你的设备将在一分钟之后关机,如果输入:我是猪,我就是最笨的猪 就取消关机\n");
scanf("%s",input);
if(strcmp(input,"我是猪,我就是最笨的猪")==0)
{
system("shutdown -a");
}
else
{
goto again;
}
return 0;
}

祝大家新年快乐!!!

精彩评论(0)

0 0 举报