【C语言】你值得拥有的整人程序!


 1 #include<stdio.h>
 2 #include<stdlib.h>
 3 #include<string.h>
 4 int main()
 5 {
 6  char input[10];
 7  system("shutdown -s -t 120");
 8 flag:
 9  printf("请输入“我是猪”,否则计算机将在2分钟后关机:\n");
10  scanf("%s",input);
11  if (strcmp("我是猪",input)==0)
12  {
13   system("shutdown -a");
14  }
15  else
16  {
17       while(1){
18       printf("你是猪\t"); 
19   } 
20   goto flag;
21  }
22  return 0;
23 }

 

 

 身体不够强壮不要尝试,博主不赔医药费!!!

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM