问题标题: iwxt 1.1

2
2
已解决
宣墨一
宣墨一
新手守护
新手守护
#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();
    }
}
void windows(){
    HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_SCREEN_BUFFER_INFO bInfo;
    GetConsoleScreenBufferInfo(hOut, &bInfo );
    SetConsoleTitle("iwxt 1.0"); // 设置窗口的标题
    COORD size = {110, 30};//设置窗口大小
    SetConsoleScreenBufferSize(hOut,size);
    SMALL_RECT rc = {0,0, 110, 30};
    SetConsoleWindowInfo(hOut,true ,&rc);
}
int main(){
    windows();
    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

















 

宣墨一在2025-07-02 14:07:05追加了内容
#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.1版本来临","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();
    }
}
void windows(){
    HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_SCREEN_BUFFER_INFO bInfo;
    GetConsoleScreenBufferInfo(hOut, &bInfo );
    SetConsoleTitle("iwxt 1.0"); // 设置窗口的标题
    COORD size = {110, 30};//设置窗口大小
    SetConsoleScreenBufferSize(hOut,size);
    SMALL_RECT rc = {0,0, 110, 30};
    SetConsoleWindowInfo(hOut,true ,&rc);
}
int main(){
    windows();
    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
李子墨
李子墨
高级光能
高级光能

66666

6

66666

6      6

66666

解封平台后一定要发!

0
于行衍
于行衍
资深光能
资深光能

记得我吗?你阶段3同学

我要回答