当前位置:网站首页>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;
}
边栏推荐
- Fingertips life Chapter 4 modules and packages
- XSS prevention
- Nacos 配置中心整体设计原理分析(持久化,集群,信息同步)
- Wechat applet JWT login issue token
- Wechat applet pull-down loading more waterfall flow loading
- 【人员密度检测】基于形态学处理和GRNN网络的人员密度检测matlab仿真
- Installation and use of blue lake
- 【IBDFE】基于IBDFE的频域均衡matlab仿真
- 2022-07-01: at the annual meeting of a company, everyone is going to play a game of giving bonuses. There are a total of N employees. Each employee has construction points and trouble points. They nee
- Go branch and loop
猜你喜欢
《西线无战事》我们才刚开始热爱生活,却不得不对一切开炮
The 5th Blue Bridge Cup single chip microcomputer provincial competition
[personnel density detection] matlab simulation of personnel density detection based on morphological processing and GRNN network
How should the team choose the feature branch development mode or trunk development mode?
软件测试人的第一个实战项目:web端(视频教程+文档+用例库)
手撕——排序
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
Microsoft Research Institute's new book "Fundamentals of data science", 479 Pages pdf
Www 2022 | rethinking the knowledge map completion of graph convolution network
Typescript practice for SAP ui5
随机推荐
powershell_ View PowerShell function source code (environment variable / alias) / take function as parameter
Wpviewpdf Delphi and Net PDF viewing component
Monkey测试
文档声明与字符编码
【人员密度检测】基于形态学处理和GRNN网络的人员密度检测matlab仿真
SQL Yiwen get window function
Recyclerview add header
Finally got byte offer. The 25-year-old inexperienced perception of software testing is written to you who are still confused
What is 5g industrial wireless gateway? What functions can 5g industrial wireless gateway achieve?
First acquaintance with string+ simple usage (II)
[JS event -- event flow]
"No war on the Western Front" we just began to love life, but we had to shoot at everything
Qt插件之Qt Designer插件实现
The confusion I encountered when learning stm32
How should the team choose the feature branch development mode or trunk development mode?
Installation and use of blue lake
Wechat applet JWT login issue token
WPViewPDF Delphi 和 .NET 的 PDF 查看组件
Visual slam Lecture 3 -- Lie groups and Lie Algebras
Introduction to vmware workstation and vSphere