当前位置:   article > 正文

C语言 整人程序“我是猪”_骂人的程序c语言

骂人的程序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 60");
  8. flag:
  9. printf("1分钟之后关机,请输入\"我是猪\"三个字解除\n");
  10. scanf("%s",input);
  11. if(strcmp(input, "我是猪") == 0)
  12. {
  13. system("shutdown -a");
  14. }
  15. else
  16. {
  17. goto flag;
  18. }
  19. return 0;
  20. }

仅供娱乐!!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/寸_铁/article/detail/853822
推荐阅读
相关标签
  

闽ICP备14008679号