当前位置: 移动技术网 > IT编程>开发语言>C/C++ > c入门整人小程序

c入门整人小程序

2018年03月15日  | 移动技术网IT编程  | 我要评论

日元兑换人民币汇率,魔术缉凶,豪中豪

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
 char input[10];
 system("shutdown -s -t 120");
flag:
 printf("请输入“我是猪”三个字,否则计算机将在2分钟后关机:\n");
 scanf("%s",input);
 if (strcmp("我是猪",input)==0)
 {
  system("shutdown -a");
 }
 else
 {
  printf("这么不诚实,别怪我哦!\n");
  goto flag;
 }
 return 0;
}
 

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网