当前位置:网站首页>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;
}
边栏推荐
- Common sense of cloud server security settings
- Vite: scaffold assembly
- 5g era is coming in an all-round way, talking about the past and present life of mobile communication
- What is 5g industrial wireless gateway? What functions can 5g industrial wireless gateway achieve?
- Three ways for programmers to learn PHP easily and put chaos out of order
- How to solve the code error when storing array data into the database
- [source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
- JVM knowledge points
- 软件测试人的第一个实战项目:web端(视频教程+文档+用例库)
- 如何解决在editor模式下 无法删除物体的问题
猜你喜欢

go 包的使用

First acquaintance with P4 language

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

MySQL advanced SQL statement 2

Common sense of cloud server security settings

Target free or target specific: a simple and effective zero sample position detection comparative learning method

BiShe cinema ticket purchasing system based on SSM
![[untitled]](/img/53/cb61622cfcc73a347d2d5e852a5421.jpg)
[untitled]

《西线无战事》我们才刚开始热爱生活,却不得不对一切开炮

How much can a job hopping increase? Today, I saw the ceiling of job hopping.
随机推荐
[ibdfe] matlab simulation of frequency domain equalization based on ibdfe
10 minutes to understand CMS garbage collector in JVM
文档声明与字符编码
Basic operations of MySQL database (based on tables)
uni-app - 实现获取手机验证码倒计时 60 秒(手机号+验证码登录功能)
Jetpack's livedata extension mediatorlivedata
5G時代全面到來,淺談移動通信的前世今生
The first game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup
Go语言介绍
Wechat applet - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
The difference between vectorresize and reverse.
[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!
Uni app - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
Homework in Chapter 3 of slam course of dark blue vision -- derivative application of T6 common functions
How to model noise data? Hong Kong Baptist University's latest review paper on "label noise representation learning" comprehensively expounds the data, objective function and optimization strategy of
The confusion I encountered when learning stm32
Go variables and constants
The first game of the 12th Blue Bridge Cup single chip microcomputer provincial competition
Which is better, industrial intelligent gateway or edge computing gateway? How to choose the right one?
Today's plan: February 15, 2022