问题标题: IWXT 1.0系统

1
1
已解决
宣墨一
宣墨一
新手守护
新手守护

下载代码

测试阶段

会更新

宣墨一在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
 


0
已采纳
李家兴
李家兴
修练者
修练者

不错,建议加一些字符画图标、多加一点应用。

0
高驰宇
高驰宇
新手光能
新手光能

出错啦

没有权限请求此资源。

0
0
0
我要回答