测试阶段
会更新
宣墨一在2025-06-03 18:23:00追加了内容
#include<iostream>
#include<bits/stdc++.h>
#include<unistd.h>
#include<windows.h>
#include<conio.h>
#include<tlhelp32.h>
using namespace std;
void kj(){
MessageBox(NULL,"1.0版本来临","IWXT提示",MB_OKCANCEL);
system("pause");
system("cls");
cout<<"开机中……";
sleep(1);
cout<<"██";
sleep(1);
cout<<"██";
sleep(1);
cout<<"██";
sleep(1);
cout<<"██";
sleep(1);
cout<<"██";
sleep(1);
cout<<"██";
sleep(1);
cout<<"██";
sleep(1);
cout<<"██";
sleep(1);
cout<<"██";
sleep(1);
cout<<"██";
sleep(1);
system("cls");
}
void zhm(){
system("cls");
cout<<"IWXT 1.0"<<endl<<endl;
cout<<"1.软件管理"<<endl;
cout<<"2.硬件管理"<<endl;
cout<<"3.应用中心"<<endl;
cout<<"4.开始";
}
void rj(){
sleep(1);
system("cls");
cout<<"应用中心 使用率"<<endl;
cout<<10+1<<"%";
cout<<endl<<"0.返回";
int ch=getch();
if(ch-'0'==0){
return ;
}
}
void yj(){
sleep(1);
system("cls");
cout<<"CPU %"<<90<<endl;
cout<<"C: %"<<26<<endl;
cout<<endl<<"0.返回";
int ch=getch();
if(ch-'0'==0){
return ;
}
}
void yy(){
sleep(1);
system("cls");
cout<<"目前没有应用,后续会更新";
cout<<endl<<"0.返回";
int ch=getch();
if(ch-'0'==0){
return ;
}
}
void ks(){
sleep(1);
system("cls");
cout<<"1.关机";
cout<<endl<<"0.返回";
int ch=getch();
if(ch-'0'==0){
return ;
}else{
abort();
}
}
int main(){
kj();
cout<<"请输入用户名"<<endl;
string s;
cin>>s;
cout<<"注册成功!"<<endl;
sleep(1);
cout<<"你好 "<<s;
sleep(1);
while(1){
zhm();
int ch;
ch=_getch();
int u=ch-'0';
if(u==1){
rj();
}else if(u==2){
yj();
}else if(u==3){
yy();
}else{
ks();
}
}
return 0;
}
//|MB_ICONQUESTION