当前位置:网站首页>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;
}
边栏推荐
- The 7th Blue Bridge Cup single chip microcomputer provincial competition
- Hands on deep learning (II) -- multi layer perceptron
- cookie、session、tooken
- WPViewPDF Delphi 和 .NET 的 PDF 查看组件
- [source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
- 【leetcode】81. Search rotation sort array II
- 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
- C语言:逻辑运算和判断选择结构例题
- 如何解决在editor模式下 无法删除物体的问题
- 蓝湖的安装及使用
猜你喜欢

C language: examples of logical operation and judgment selection structure

First acquaintance with P4 language

Jetpack's livedata extension mediatorlivedata

pip 安装第三方库

Wpviewpdf Delphi and Net PDF viewing component

蓝湖的安装及使用

A thorough understanding of the development of scorecards - the determination of Y (Vintage analysis, rolling rate analysis, etc.)

Lost a few hairs, and finally learned - graph traversal -dfs and BFS

【c语言】基础篇学习笔记

The first game of the 12th Blue Bridge Cup single chip microcomputer provincial competition
随机推荐
SQL:常用的 SQL 命令
C语言:逻辑运算和判断选择结构例题
Visual slam Lecture 3 -- Lie groups and Lie Algebras
Go language introduction
微信小程序 - 实现获取手机验证码倒计时 60 秒(手机号+验证码登录功能)
LCM of Spreadtrum platform rotates 180 °
【IBDFE】基于IBDFE的频域均衡matlab仿真
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
Hand tear - sort
毕设-基于SSM电影院购票系统
Introduction to JSON usage scenarios and precautions
go 函数
The confusion I encountered when learning stm32
The first game of the 12th Blue Bridge Cup single chip microcomputer provincial competition
How to solve the problem that objects cannot be deleted in Editor Mode
LxC limits the number of CPUs
5g era is coming in an all-round way, talking about the past and present life of mobile communication
2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板,老板也有建设积分和捣乱积分, 排好队后,所有
Www 2022 | rethinking the knowledge map completion of graph convolution network
Force buckle 540 A single element in an ordered array