当前位置:网站首页>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;
}
边栏推荐
- [JS -- map string]
- 5G時代全面到來,淺談移動通信的前世今生
- Go language naming specification
- Demonstration description of integrated base scheme
- 66.qt quick-qml自定义日历组件(支持竖屏和横屏)
- Dare to go out for an interview without learning some distributed technology?
- 如何解决在editor模式下 无法删除物体的问题
- [source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
- LxC limits the number of CPUs
- Feature Engineering: summary of common feature transformation methods
猜你喜欢
Visual slam Lecture 3 -- Lie groups and Lie Algebras
Spring moves are coming. Watch the gods fight
【leetcode】74. Search 2D matrix
Www2022 | know your way back: self training method of graph neural network under distribution and migration
office_ Delete the last page of word (the seemingly blank page)
Sorted out an ECS summer money saving secret, this time @ old users come and take it away
"No war on the Western Front" we just began to love life, but we had to shoot at everything
SQL Yiwen get window function
藍湖的安裝及使用
《西线无战事》我们才刚开始热爱生活,却不得不对一切开炮
随机推荐
SQL: common SQL commands
【c语言】动态规划---入门到起立
Finally got byte offer. The 25-year-old inexperienced perception of software testing is written to you who are still confused
MySQL error: expression 1 of select list is not in group by claim and contains nonaggre
Go language naming specification
【leetcode】81. Search rotation sort array II
10 minutes to understand CMS garbage collector in JVM
cookie、session、tooken
藍湖的安裝及使用
【IBDFE】基于IBDFE的频域均衡matlab仿真
Microsoft Research Institute's new book "Fundamentals of data science", 479 Pages pdf
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 语言命名规范
手撕——排序
L'avènement de l'ère 5G, une brève discussion sur la vie passée et présente des communications mobiles
Realizing deep learning framework from zero -- Introduction to neural network
Learn more about materialapp and common attribute parsing in fluent
【leetcode】74. Search 2D matrix
5G時代全面到來,淺談移動通信的前世今生