二话不说,先上代码!
#include <bits/stdc++.h>
#include <windows.h>
#include <conio.h>
using namespace std;
void A_hongshuye()
{
char a,b[10240];
cout<<"0=black, 1=blue, 2=green, 3=lake blue, 4=red, 5=purple, 6=yellow, 7=white, 8=grey, 9=light blue"<<endl<<"A=light green, B=light green, C=light red, D=light purple, E=light yellow, F=bright white"<<endl<<endl<<endl;
cout<<"Please select a background code:";
cin>>a;
if(a=='0'){system("color 07");}
if(a=='1'){system("color 17");}
if(a=='2'){system("color 27");}
if(a=='3'){system("color 37");}
if(a=='4'){system("color 47");}
if(a=='5'){system("color 57");}
if(a=='6'){system("color 67");}
if(a=='7'){system("color 77");}
if(a=='8'){system("color 87");}
if(a=='9'){system("color 97");}
if(a=='A'){system("color A7");}
if(a=='B'){system("color B7");}
if(a=='C'){system("color C7");}
if(a=='D'){system("color D7");}
if(a=='E'){system("color E7");}
if(a=='F'){system("color F7");}
system("cls");
for(int i=0;i<=1023;i++){
cin>>b[i];
}
}
void A_num(){
double num1,num2;
char f;
cin>>num1>>f>>num2;
if(f=='+'){cout<<num1+num2;}
if(f=='-'){cout<<num1-num2;}
if(f=='*'){cout<<num1*num2;}
if(f=='/'){cout<<num1/num2;}
Sleep(5000);
}
void A_time(){
int y;
cout<<"Counting seconds>>";
cin>>y;
Sleep(y*1000);
system("cls");
cout<<"Time is up.";
system("color C7");
Sleep(3000);
}
void A_pic(){
system("cls");
int a,b;
char c;
cout<<"Data>>";
cin>>a>>b>>c;
for(int i=0;i<a;i++)
{
for(int j=0;j<b;j++)
{
if(i==0||i==a-1||j==0||j==b-1)
cout<<c;
else
cout<<" ";
}
cout<<endl;
}
Sleep(10000);
}
void B_coll(){
system("cls");
system("color 47");
cout<<"[invalid]";
Sleep(3500);
}
int main()
{
system("title Quild XT3S");
int s;
int u;
cout<<"UHD>>";
cin>>u;
if(!u){
return 0;
}
system("cls");
Sleep(1000);
cout<<"Welcome to Quild system."<<endl<<endl<<endl;
for(int i=1;i<=20;i++){
cout<<"|";
Sleep(250);
}
Sleep(2500);
while(true){
system("cls");
system("color 07");
int x;
time_t nowtime;
struct tm* p;;
time(&nowtime);
p = localtime(&nowtime);
printf("%02d:%02d\n\n",p->tm_hour,p->tm_min);
cout<<"A Hard Disk"<<endl<<endl;
cout<<"1. Drawing"<<endl<<"2. redleevbook"<<endl<<"3. numbers"<<endl<<"4. timer"<<endl<<"5. administrators"<<endl<<endl;
cout<<"AHD>>";
cin>>x;
if(x==1){
A_pic();
}
else if(x==2){
system("cls");
A_hongshuye();
}
else if(x==3){
system("cls");
A_num();}
else if(x==5){
system("cls");
int c;
cout<<"B Hard Disk"<<endl<<endl;
cout<<"1. shutdown"<<endl;
cout<<"2. version"<<endl;
cout<<"3. repair"<<endl<<endl;
cout<<"BHD>>";
cin>>c;
if(c==1){system("cls");Sleep(1000);
return 0;}
else if(c==2){system("cls");
cout<<"Quild XT3S @SKM-A";
Sleep(5000);}
else if(c==3){system("cls");
for(int i=1;i<=20;i++){
cout<<"|";
Sleep(250);
}}
else{
B_coll();
}
}
else if(x==4){system("cls");
A_time();
}
else{
B_coll();
}
}
return 0;
}
系统名称:Quild XT3S
编写语言:C++
发布时间:2023/01/13 22:27 (北京时间)