C语言 整人程序“我是猪”
2015-10-05 15:42
316 查看
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char input[10]; system("shutdown -s -t 60"); flag: printf("1分钟之后关机,请输入\"我是猪\"三个字解除\n"); scanf("%s",input); if(strcmp(input, "我是猪") == 0) { system("shutdown -a"); } else { goto flag; } return 0; }仅供娱乐!!
相关文章推荐
- 寻找最大值
- C语言用后序求表达式的结果
- 下表法排序
- 选择排序
- C++:预处理
- c语言练习
- C/C++中判断某一文件或目录是否存在
- 【C语言】02 基本概念
- 【C语言】01 写在开头
- c++ 遍历文件夹(转)
- 2048游戏C语言代码
- C++类构造函数初始化列表
- 【C++学习】fstream的使用方法介绍
- C++中的也能使用正则表达式
- 带你玩转Visual Studio——带你管理多种释出版本
- 指针的指针
- C++学习笔记7——模板
- Leetcode:Add Digits
- 将Vim改造为强大的IDE—Vim集成Ctags/Taglist/Cscope/Winmanager/NERDTree/OmniCppComplete(有图有真相)
- C++第一课