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