当前位置:网站首页>60后关机程序
60后关机程序
2022-07-02 04:08:00 【开飞机的贝塔儿】
请输入“我是猪”取消关机,否则60秒后自动关机。
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char input[20] = {
0 };
system("shutdown - s - t 60"); //60s后关机
again:
printf("请输入我是猪,否则关机\n->");
scanf("%s", input);
if (strcmp(input, "我是猪") == 0)
system("shutdown - a"); //取消关机
else
goto again;
return 0;
}
边栏推荐
- Spring recruitment of Internet enterprises: Kwai meituan has expanded the most, and the annual salary of technical posts is up to nearly 400000
- Finally got byte offer. The 25-year-old inexperienced perception of software testing is written to you who are still confused
- Handling of inconsistency between cursor and hinttext position in shutter textfield
- How much is the tuition fee of SCM training class? How long is the study time?
- Wechat applet map annotation
- go 函数
- 【leetcode】34. Find the first and last positions of elements in a sorted array
- The first game of the 12th Blue Bridge Cup single chip microcomputer provincial competition
- LxC limits the number of CPUs
- Yyds dry inventory compiler and compiler tools
猜你喜欢

《动手学深度学习》(二)-- 多层感知机

How should the team choose the feature branch development mode or trunk development mode?

Hand tear - sort

Opencv learning example code 3.2.4 LUT

Cloud service selection of enterprises: comparative analysis of SaaS, PAAS and IAAs
![[wireless image transmission] FPGA based simple wireless image transmission system Verilog development, matlab assisted verification](/img/77/4df7a1439ff1a53f94d409a19a47d6.png)
[wireless image transmission] FPGA based simple wireless image transmission system Verilog development, matlab assisted verification

Lei Jun wrote a blog when he was a programmer. It's awesome

Sorted out an ECS summer money saving secret, this time @ old users come and take it away

Jetpack's livedata extension mediatorlivedata

【无线图传】基于FPGA的简易无线图像传输系统verilog开发,matlab辅助验证
随机推荐
66.qt quick QML Custom Calendar component (supports vertical and horizontal screens)
初识P4语言
毕设-基于SSM电影院购票系统
XSS prevention
Sorted out an ECS summer money saving secret, this time @ old users come and take it away
[live broadcast review] the first 8 live broadcasts of battle code Pioneer have come to a perfect end. Please look forward to the next one!
Go language introduction
Nacos 配置中心整体设计原理分析(持久化,集群,信息同步)
2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板,老板也有建设积分和捣乱积分, 排好队后,所有
FAQ | FAQ for building applications for large screen devices
手撕——排序
Where can I buy cancer insurance? Which product is better?
LCM of Spreadtrum platform rotates 180 °
okcc为什么云呼叫中心比传统呼叫中心更好?
PR zero foundation introductory guide note 2
Lost a few hairs, and finally learned - graph traversal -dfs and BFS
Raspberry pie GPIO pin controls traffic light and buzzer
Which insurance company has a better product of anti-cancer insurance?
Www2022 | know your way back: self training method of graph neural network under distribution and migration
How much can a job hopping increase? Today, I saw the ceiling of job hopping.