#include <iostream> using namespace std; void MAIN(); int main(){ int n; while(1){ MAIN(); cin>>n; int time; switch(n){ case 1:{ cout<<"请输入等待关机时间:"; cin>>time; system("shutdown /s /t time"); break; } } system("pause"); system("cls"); } return 0; } void MAIN(){ cout<<"欢迎使用文件管理系统"<<endl <<"*******1.关机*******"<<endl <<"*******2.重启*******"<<endl <<"*******3.显示日期***"<<endl <<"*******4.显示时间***"<<endl; }
标签:cout,int,void,system,111,time,MAIN From: https://www.cnblogs.com/wangyihang-xh/p/17936036.html