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
0