当前位置:网站首页>C language: spoof games
C language: spoof games
2022-04-23 04:40:00 【Green shirt 101060】
Use knowledge :
1、 Computer shutdown command :
shutdown -s -t 60
Set the computer in 60 Shut down in seconds . If you want to change the time , Change that number 60 that will do .
2、goto sentence
It is convenient to jump over the sentence of transfer input when the other party inputs incorrect words .
3、 Include header file
#include <stdio.h> #include <windows.h> #include <string.h>
Here is the complete code :
#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <windows.h> #include <string.h> int main() { char inputs[20] = { 0 }; system("shutdown -s -t 60"); again: printf(" Please note that , Your computer will shut down in a minute \n"); printf(" Tell me you're a pig , Or turn off your computer \n"); scanf("%s", &inputs); if (strcmp(inputs, " I am a pig ") == 0) { system("shutdown -a"); } else { goto again; } return 0; }
After entering the complete code , In the compiler, the file is composed of debug The version is adjusted to release edition
Then find... In the stored file release Folder , One of the suffixes is .exe The file of , Then send it to your little partner to experiment .
Be careful , Don't play too much !
版权声明
本文为[Green shirt 101060]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230401322039.html
边栏推荐
- [AI vision · quick review of today's sound acoustic papers, issue 3] wed, 20 APR 2022
- IEEE Transactions on industrial information (TII)
- MYSQL去重方法汇总
- Leetcode002 -- inverts the numeric portion of a signed integer
- 兼容NSR20F30NXT5G的小体积肖特基二极管
- 洛谷P1858 【多人背包】 (背包求前k优解)
- 383. Ransom letter
- Use recyclerview to realize left-right side-by-side classification selection
- [pytoch foundation] torch Split() usage
- 基于英飞凌MCU GTM模块的无刷电机驱动方案开源啦
猜你喜欢
229. 求众数 II
Bacterial infection and antibiotic use
第四章 --- 了解标准设备文件、过滤器和管道
Fusobacterium -- symbiotic bacteria, opportunistic bacteria, oncobacterium
Recommended scheme for national production of electronic components for wireless charging
test
优麒麟 22.04 LTS 版本正式发布 | UKUI 3.1开启全新体验
Recursive call -- Enumeration of permutations
Interaction of diet gut microbiota on cardiovascular disease
数据孤岛是什么?为什么2022年仍然存在数据孤岛?
随机推荐
第四章 --- 了解标准设备文件、过滤器和管道
那些年我面试过的Android开发岗总结(附面试题+答案解析)
STM32 upper μ C / shell transplantation and Application
C语言:恶搞小游戏
Brushless motor drive scheme based on Infineon MCU GTM module
Recommended scheme of national manufactured electronic components for intelligent electronic scales
Ali's ten-year technical experts jointly created the "latest" jetpack compose project combat drill (with demo)
Recursive call -- Enumeration of permutations
MYSQL50道基础练习题
SQL statement for adding columns in MySQL table
2020 is coming to an end, special and unforgettable.
Differences among electric drill, electric hammer and electric pick
Luogu p1858 [multi person knapsack] (knapsack seeking the top k optimal solution)
程序员抱怨:1万2的工资我真的活不下去了,网友:我3千咋说
[AI vision · quick review of today's sound acoustic papers, issue 3] wed, 20 APR 2022
Basic use of shell WC (counting the number of characters)
Microbial neuroimmune axis -- the hope of prevention and treatment of cardiovascular diseases
The perfect combination of collaborative process and multi process
Iron and intestinal flora
阿里十年技术专家联合打造“最新”Jetpack Compose项目实战演练(附Demo)