c/c++语言开发共享C语言:设置自动关机程序:2分钟之后关机,请输入"我好帅"三个字解除n"

自动关机程序: #include <stdio.h> #include <stdlib.h>//system #include <string.h>//

自动关机程序:

  #include <stdio.h>  #include <stdlib.h>//system  #include <string.h>//strcmp    int main()  {  char input[10];//input返回string   :  system("shutdown -s -t 120");  flag://标签  printf("2分钟之后关机,请输入"我好帅"三个字解除n");  scanf("%s",input);  if(strcmp(input, "我好帅") == 0)  {  system("shutdown -a");  }  else  {  goto flag;  }  return 0;  }

 

方法:

windows+r键,然后输入“shutdown -a”,再按回车(类似的xx.bat文件都可如此破解)

 

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/c-cdevelopment/606818.html

(0)
上一篇 2021年5月14日
下一篇 2021年5月14日

精彩推荐