当前位置:网站首页>Shutdown procedure after 60
Shutdown procedure after 60
2022-07-02 04:10:00 【Beta flying a plane】
Please enter “ I am a pig ” Cancel shutdown , otherwise 60 Turn off automatically in seconds .
#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 Power off after
again:
printf(" Please enter that I am a pig , Otherwise shut down \n->");
scanf("%s", input);
if (strcmp(input, " I am a pig ") == 0)
system("shutdown - a"); // Cancel shutdown
else
goto again;
return 0;
}
边栏推荐
- Uni app - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
- Fluent icon demo
- Which insurance company has a better product of anti-cancer insurance?
- Force buckle 540 A single element in an ordered array
- Installation et utilisation du lac bleu
- 【IBDFE】基于IBDFE的频域均衡matlab仿真
- Which product of anti-cancer insurance is better?
- 【c语言】动态规划---入门到起立
- Go language introduction
- C语言:逻辑运算和判断选择结构例题
猜你喜欢

SQL Yiwen get window function

Basic operations of MySQL database (based on tables)

Use a mask to restrict the input of the qlineedit control

Yolov5网络修改教程(将backbone修改为EfficientNet、MobileNet3、RegNet等)

Document declaration and character encoding

Suggestions on settlement solution of u standard contract position explosion

集成底座方案演示说明

Actual combat | use composite material 3 in application

Which is better, industrial intelligent gateway or edge computing gateway? How to choose the right one?

Hand tear - sort
随机推荐
The confusion I encountered when learning stm32
Vite: configure IP access
QT designer plug-in implementation of QT plug-in
毕设-基于SSM电影院购票系统
SQL: common SQL commands
powershell_ View PowerShell function source code (environment variable / alias) / take function as parameter
Recently, the weather has been extremely hot, so collect the weather data of Beijing, Shanghai, Guangzhou and Shenzhen last year, and make a visual map
The difference between vectorresize and reverse.
Yyds dry inventory compiler and compiler tools
Use of go package
Fingertips life Chapter 4 modules and packages
Lei Jun wrote a blog when he was a programmer. It's awesome
[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!
SQL:常用的 SQL 命令
uni-app - 实现获取手机验证码倒计时 60 秒(手机号+验证码登录功能)
Pytorch---使用Pytorch进行鸟类的预测
初识P4语言
Suggestions on settlement solution of u standard contract position explosion
手撕——排序
Influence of air resistance on the trajectory of table tennis