定时关机
#include <bits/stdc++.h>
#include <bits/stdc++.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
using namespace std;
int main()
{
// 关机倒计时
// |
// ▽
system("shutdown -s -t 30");//30指关机倒计时 .
again: //记得加 again:
goto again;//指开始关机.
system("shutdown -a"); //取消关机
return 0;
}