关机小程序:60秒!!!

就是这样了:

#include<iostream>
#include<windows.h>
using namespace std;
int main()
{
    int i;
    for(i=50;i>=0;i--)
    {
        cout<<i+10<<"秒后会自动关机"<<endl;
        Sleep(1000);
        system("cls");                  
    }    
    system("shutdown -s -t 10");
    system("pause");
    return 0;
}
关机小程序
原文地址:https://www.cnblogs.com/mayitao/p/6697821.html