当前位置:网站首页>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;
}
边栏推荐
- Monkey测试
- Recyclerview add header
- Okcc why is cloud call center better than traditional call center?
- Visual slam Lecture 3 -- Lie groups and Lie Algebras
- go 包的使用
- Use a mask to restrict the input of the qlineedit control
- L'avènement de l'ère 5G, une brève discussion sur la vie passée et présente des communications mobiles
- Pytorch---使用Pytorch进行鸟类的预测
- 【力扣刷题】15.三数之和(双指针);17.电话号码的字母组合(递归回溯)
- Realizing deep learning framework from zero -- Introduction to neural network
猜你喜欢

Use a mask to restrict the input of the qlineedit control

【力扣刷题】15.三数之和(双指针);17.电话号码的字母组合(递归回溯)

Spring recruitment of Internet enterprises: Kwai meituan has expanded the most, and the annual salary of technical posts is up to nearly 400000

【小技巧】使用matlab GUI以对话框模式读取文件

Opencv learning example code 3.2.4 LUT

Common sense of cloud server security settings

C language: examples of logical operation and judgment selection structure

JVM knowledge points

First acquaintance with string+ simple usage (II)

Go语言介绍
随机推荐
JVM knowledge points
Monkey test
Go language introduction
[wireless image transmission] FPGA based simple wireless image transmission system Verilog development, matlab assisted verification
Play with concurrency: what's the use of interruptedexception?
蓝湖的安装及使用
Spring recruitment of Internet enterprises: Kwai meituan has expanded the most, and the annual salary of technical posts is up to nearly 400000
The 11th Blue Bridge Cup single chip microcomputer provincial competition
Opencv learning example code 3.2.4 LUT
Fluent icon demo
Monkey测试
Use of go package
Pytorch---使用Pytorch实现U-Net进行语义分割
FAQ | FAQ for building applications for large screen devices
云服务器的安全设置常识
LxC limits the number of CPUs
u本位合约爆仓清算解决方案建议
Pytorch---使用Pytorch进行鸟类的预测
Which product of anti-cancer insurance is better?
Learn more about materialapp and common attribute parsing in fluent