问题标题: 自制操作系统(请求给出建议)

0
1
李家兴
李家兴
修练者
修练者

#include<iostream>
#include<iomanip>
#include<cmath>
#include<algorithm>
#include<Windows.h>
#include<cstdlib>
#include<conio.h>
#include <chrono>
#include <ctime>
using namespace std;
//二级函数
void ww(int b,int c,char ss,int &b1,int &c1,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s','|'},
            {'|',' ',' ',' ',' ','/','/','/','/','/',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ','/',' ','z','m','/',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ','s',' ','/','l',' ','c','/',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ','s',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x[b1][c1]!=x[b][c]){
        x[b1][c1]='N';
    }
    if(b1>16||c1>11){
        b1=5;
        c1=8;
    }
    for(int i=0;i<11;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void wy(int b,int c,char ss,int &b1,int &c1,int &b2,int &c2,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ','s',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','h','h','h','|'},
            {'|',' ',' ','s',' ',' ','s',' ',' ',' ',' ',' ',' ','h','h','|'},
            {'|','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ','s','h','h','|'},
            {'|','s','l','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','h','|'},
            {'|','z',' ','/',' ',' ',' ',' ',' ',' ',' ',' ','h','h','h','|'},
            {'|','c',' ',' ',' ',' ','s',' ',' ',' ','s',' ','h','h','h','|'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x[b1][c1]!=x[b][c]){
        x[b1][c1]='N';
    }
    if(x[b2][c2]!=x[b][c]){
        x[b2][c2]='X';
    }
    if(b1>16||c1>11){
        b1=5;
        c1=8;
    }
    if(b2>16||c2>11){
        b2=6;
        c2=4;
    }
    for(int i=0;i<11;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void we(int b,int c,char ss,int &b1,int &c1,long long &baoshi){
    char x[122][122]={
        {' ','_','_','_','_','_','_','_','_','_','_','_',' '},
        {'|',' ',' ',' ','s',' ',' ','s',' ','s',' ',' ','|'},
        {'|','s',' ','s',' ','s',' ',' ',' ',' ',' ','s','|'},
        {'|',' ',' ',' ','/','/','/','/','/',' ','s',' ','|'},
        {'|',' ','s',' ','/','z',' ','l','/','s',' ',' ','|'},
        {'|',' ',' ','s','/',' ',' ','c','/',' ',' ','s','|'},
        {'|','s',' ',' ',' ',' ','s',' ',' ',' ','s',' ','|'},
        {'|','_','s','_','_','_','_','_','s','_','_','_','|'},
    };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x[b1][c1]!=x[b][c]){
        x[b1][c1]='X';
    }
    if(b1>16||c1>11){
        b1=2;
        c1=7;
    }
    for(int i=0;i<8;i++){//s
        for(int j=0;j<13;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void wr(int b,int c,char ss,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s','|'},
            {'|',' ',' ',' ',' ','/','/','/','/','/',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ','/',' ','z','m','/',' ',' ',' ','h','h','h'},
            {'|',' ',' ','s',' ','/','l',' ','c','/',' ',' ',' ','h','h','h'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','h','h','h'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s','h','h'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','h','h'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    for(int i=0;i<10;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void w(int x,int y,char ss,long long &baoshi){
    char s[100][100]={
        {'_','_','_','_','_','_','_','_'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|','_','_','_','_','_','_','|'},
    };
    s[x][y]=ss;
    for(int i=0;i<8+1;i++){
        for(int j=0;j<7+1;j++){
            cout<<s[i][j];
        }
        cout<<endl;
    }
    cout<<"位置:"<<x<<','<<y;
}
void wp(int b,int c,char ss,int &b1,int &c1,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ','_','_','_','_','_','|'},
            {'|','l','c','z','/',' ',' ',' ',' ',' ','|',' ',' ',' ','|','|'},
            {'|','/','/','/','/',' ',' ',' ',' ',' ','|',' ',' ',' ','|','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','_','_','_','|','|'},
            {'|','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/',' ',' ',' ',' ','/','/',' ','/',' ',' ',' ','s',' ','|'},
            {'|','/',' ',' ',' ',' ','/',' ',' ','/',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/',' ',' ','/',' ',' ','/',' ',' ',' ',' ',' ','|'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else

    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x[b1][c1]!=x[b][c]){
        x[b1][c1]='Z';
    }
    if(b1>11||c1>16){
        b1=8;
        c1=8;
    }
    for(int i=0;i<11;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void ws(int b,int c,char ss,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','z',' ',' ',' ',' ',' ',' ',' ','_','_','_','_','_',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','l',' ',' ','/',' ',' ',' ',' ',' ','|',' ',' ',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/','/',' ',' ',' ',' ',' ','|',' ',' ',' ','|',' ',' ',' ',' ',' ','s',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ','c',' ','|','_','_','_','|',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','m',' ',' ',' ','s','s',' ','/',' ',' ',' ','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/',' ',' ',' ',' ',' ','s',' ',' ',' ',' ',' ',' ',' ','s',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','m',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/',' ','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','/','m','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','c',' ',' ',' ','|'},
            {'|',' ','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','z',' ',' ',' ',' ',' ',' ',' ','l',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','s','s','s','s','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/','/','/','/',' ',' ','/',' ',' ',' ',' ',' ',' ',' ',' ',' ','z',' ',' ',' ',' ','|'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    for(int i=0;i<20;i++){//s
        for(int j=0;j<25;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
char x[122][122]={
    {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','z','|'},
    {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
};
void wq(int b,int c,char ss,char xx,bool x2,long long &baoshi){
    //if(n==1){
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x2==1){
        x[b][c]=xx;
    }
    for(int i=0;i<10;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
char qx[122][122]={
    {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
};
void wq(int b,int c,char ss,char xx,bool x2){
    //if(n==1){
    if(qx[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(qx[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(qx[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(qx[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(2900);
        system("cls");
    }//else
    if(qx[b][c]!='/'){
        qx[b][c]=ss;
    }
    if(x2==1){
        x[b][c]=xx;
    }
    for(int i=0;i<10;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<qx[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
}
char aon[105][105],bon[105][105];
int dir[10][2]={{0,0},{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}};
char fo(int x,int y,int n,int m){
    int cnt=0;
    for(int i=1;i<=8;i++){
        int dx=x+dir[i][0];
        int dy=y+dir[i][1];
        if(dx>=1&&dx<=n&&dy>=1&&dy<=m&&aon[dx][dy]=='*'){
            cnt++;
        }
    }
    return cnt+'0';
}
//一级函数
int saolei(){
    system("cls");
    int n,m;
    int sum=0,num=0,cnt=0;
    cout<<"请选择难度:1.简单3*3  2.普通6*6  3.困难10*10\n";
    int wwww;
    cin>>wwww;
    if(wwww==1){
        n=3,m=3;
    }
    if(wwww==2){
        n=6,m=6;
    }
    if(wwww==1){
        n=10,m=10;
    }
    cout<<"地雷图加载中……\n";
    int num2=(n*m/3);
    Sleep(1000);
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m;j++){
            int pp=0;
            srand(time(0));
            pp=rand()%5+1;
            Sleep(1000);
            if(pp==2&&cnt<=num2){
                aon[i][j]='*';
                cnt++;
            }else{
                aon[i][j]='?';
            }
        }
    }
    cout<<"加载成功\n";
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m;j++){
            if(aon[i][j]=='*'){
                bon[i][j]='*';
            }else{
                bon[i][j]=fo(i,j,n,m);
            }
        }
    }
    int x,y;
    while(1){
        bool f=0;
        cin>>x>>y;
        if(bon[x][y]!='*'){
            sum+=bon[x][y]-'0';
            for(int i=1;i<=n;i++){
                for(int j=1;j<=m;j++){
                    if(bon[i][j]!='*'){
                        if((x==i&&y==j)&&f==0){
                            cout<<bon[i][j];
                            f=1;
                            continue;
                        }
                        cout<<"?";
                    }else{
                        cout<<"?";
                    }
                }
                cout<<endl;
            }
        }else{
            break;
        }
        cout<<endl<<endl;
    }
    cout<<"Game over   得分:"<<sum;
    Sleep(5000);
    return 0;
}
bool office(string nam){
    system("cls");
    int a,b,z;
    cout<<"                                  "<<endl;
    cout<<"                 /          "<<endl;
    cout<<"                /                "<<endl;
    cout<<"          ████         "<<endl;
    cout<<"       █     /   █      "<<endl;
    cout<<"    █       /      █     "<<endl;
    cout<<"    █      /       █       "<<endl;
    cout<<"    █      \      █           Office "<<endl;
    cout<<"    █       /      █         "<<endl;
    cout<<"      █    /     █          "<<endl;
    cout<<"         ████"<<endl;
    cout<<"          /   "<<endl;
    cout<<"         /     "<<endl;
    cout<<"            "<<endl;
    cout<<"             "<<endl;
    for(int i=1;i<=50;i++){
        cout<<"█";
        Sleep(10);
    }
    Sleep(1000);
    system("cls");
    while(1){
        char ca=' ';
        system("cls");
        cout<<"                                  OS Office                                        "<<endl;
        cout<<nam<<endl;
        cout<<"                                  \n";
        cout<<"                     \n";
        cout<<"1.------- 2.-------  3.-------     4.------      5.------  \n";
        cout<<"  | █矩|    | █  |     | | | |       | word|       | draw| \n";
        cout<<"  | █阵|    |S=a*a|    |||||||       | 2025|       |画图 | \n";
        cout<<"  -------   -------    -------       ------        ------  \n";
        cout<<"                           \n";
        cout<<"                             \n";
        cout<<"                           \n";
        cout<<"                          \n";
        cout<<"                        \n";
        cout<<"                               \n";
        ca=getch();
        system("cls");
        switch(ca){
            case '5':
            while(1){
                char xx;
                char ss='+',a;
                int ep=0,b=0,c=0;
                while(1){
                    a=getch();
                    system("cls");
                    if(ep==1){
                        if(a=='w'){
                            b-=2;
                        }
                        if(a=='s'){
                            b+=2;
                        }
                        if(a=='d'){
                            c+=2;
                        }
                        if(a=='a'){
                            c-=2;
                        }
                    }else {
                        if(a=='w'){
                            b-=1;
                        }
                        if(a=='s'){
                            b+=1;
                        }
                        if(a=='d'){
                            c+=1;
                        }
                        if(a=='a'){
                            c-=1;
                        }
                    }
                    bool x2;
                    if(a=='S'){
                        x2=1;
                        xx='s';
                    }
                    if(a=='b'){
                        return 0;
                    }
                    wq(b,c,ss,xx,x2);
                }
            }
        case '4':

            system("cls");

            char a;

            cout<<"word 2025使用方法:"<<endl;
            cout<<"1.@+S+n表示n个空格  2.@+!表示两次换行  3.?+6表示一个大问号"<<endl;
            cout<<"______________________________________________________________________"<<endl;

            for(long long i=1;i<=1010101010000000000000000000;i++){
                a=getch();


                if(a=='`'){
                    break;
                }else if(a=='@'){
                    a=getch();
                    if(a=='S'){
                        a=getch();
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                    }
                }else{
                    cout<<a;
                }
                if(a=='@'){
                    a=getch();
                    if(a=='!'){
                        for(int i=1;i<=109;i++){
                            cout<<"2";
                        }
                    }
                }
                if(a=='?'){
                    a=getch();
                    if(a=='6'){
                        a=getch();
                        cout<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<" ¨€¨€¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"¨€    ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"     ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"    ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"   ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"   ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"     "<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"   ¨€"<<endl;
                    }
                }
            }

        case 'a':

            break;
            return 0;

        case '3':

            int ppa[40003],n;
            cin>>n;
            system("cls");
            cout<<"0    5    10   15   20   25   30   35   40   45   50   55\n";
            for(int i=1;i<=n;i++){
                for(int k=0;i<i;k++){
                    for(int l=1;l<=ppa[i-k];i++){
                        cout<<"█";
                    }
                    cout<<""<<ppa[i-k];
                }
                cin>>ppa[i];
                for(int j=1;j<=ppa[i];j++){
                    cout<<"█";
                }
                cout<<""<<endl;
            }
            break;

        case '1':
            system("cls");
            int m;
            int nn;
            cout<<"输入行数:";
            cin>>nn;
            cout<<"输入列数:";
            cin>>m;
            cout<<"_____________________________________________"<<endl<<endl;
            for(int i=1;i<=nn;i++){
                cout<<" ";
                for(int j=1;j<=m;j++){
                    cout<<"██";
                }
                cout<<endl;
            }
            break;
        //}
        case '2':
            cout<<"1.长方形 2.正方形 3.圆\n";
            int ii,jj,kk;
            cin>>ii;
            if(ii==1){
                cout<<"长:";
                cin>>jj;
                cout<<"宽:";
                cin>>kk;
                cout<<"\n面积是:"<<kk*jj;
            }else if(ii==2){
                cout<<"边长:";
                cin>>jj;
                cout<<"\n面积是:"<<jj*jj;
            }else if(ii==2){
                cout<<"半径:";
                cin>>jj;
                cout<<"\n面积是:"<<3.1415926535*jj*jj;
            }
        case 'p':
            return 0;
        }
        string aqqak;
        cin>>aqqak;
        break;
    }
}
string le;
double sum=0;
bool ditu(string nam){
    system("cls");
    char a,ss='+';
    int b=0,c=0;
    double d;
    cout<<"                     |                                ____________             "<<endl;
    cout<<"                     |                                |  /       |                "<<endl;
    cout<<"             ————————                         | /----/   |                 "<<endl;
    cout<<"                    /`       ___|__    ___|___        |/`   /    |                          "<<endl;
    cout<<"                   /  `         |  _|_/   |  |        |  ` / `   |                                     "<<endl;
    cout<<"                  /    `        |/  |     | `|        |   / ` `  |                               "<<endl;
    cout<<"                 /      `      /    |        `        |__/_______|                                "<<endl;
    cout<<"                /        `    /     |__________|                                                   "<<endl;
    cout<<" 2.0"<<endl;
    Sleep(2000);
    system("cls");
    if(le==""){
        cout<<"1.本机账号一键登录   2.另外登录";
        int www22;
        cin>>www22;
        if(www22==1){
            le=nam;
        }else{
            cout<<"请输入一个用户名:";
            cin>>le;
        }
    }
    system("cls");
    cout<<"欢迎,祝您玩的开心"<<endl;
    Sleep(1000);
    cout<<"使用方法:ASDW移动,D开始,s是树,m是马桶,l是炉子,c是床,z是桌子。";
    Sleep(1400);
    while(1){
        system("cls");
        cout<<"玩家:"<<le<<endl;
        cout<<"游戏经验( [ ):"<<sum<<endl;
        cout<<"_________________________________________________________________________________________________________________________"<<endl;
        cout<<"新手地图"<<endl;
        cout<<"1.1 初始地图      1.2 森林地图      1.3 海边地图      1.4 空白地图       1.5 农场地图     "<<endl;
        cout<<"    8.5[            10.3[              12.5[              3.8[                9.6[          "<<endl<<endl;
        cout<<"                                              "<<endl;
        cout<<"                                              "<<endl;
        cout<<"__________________________________________________________________________________________________________________________"<<endl;
        cout<<"招牌地图"<<endl;
        cout<<"2.1 大型地图      2.2 多NPC地图 "<<endl;
        cout<<"    13.2[            15.0["<<endl<<endl;
        cout<<endl<<endl;
        cout<<"__________________________________________________________________________________________________________________________"<<endl;
        cout<<"其他功能"<<endl;
        cout<<"3.1 更换皮肤      3.2 疾跑模式  "<<endl;
        cout<<"    -25[             -20["<<endl;
        cin>>d;
        bool ep=0;
        if(d==0){
            system("cls");
            break;
        }
        if(d==2.2){
            sum+=15.0;
        }
        if(d==1.1){
            sum+=8.5;
        }else if(d==1.2){
            sum+=10.3;
        }else if(d==1.3){
            sum+=12.5;
        }else if(d==1.4){
            sum+=3.8;
        }else if(d==1.5){
            sum+=9.6;
        }else if(d==2.1){
            sum+=13.2;
        }else if(d==7&&sum>=20){
            sum-=20;
            ep=1;
            cout<<"_________________________________________________________________________________________________________________________"<<endl;
            cout<<"新手地图"<<endl;
            cout<<"1.1 初始地图      1.2 森林地图      1.3 海边地图      1.4 空白地图       1.5 农场地图     "<<endl;
            cout<<"    8.5[            10.3[              12.5[              3.8[                9.6[          "<<endl<<endl;
            cout<<"                                              "<<endl;
            cout<<"                                              "<<endl;
            cout<<"__________________________________________________________________________________________________________________________"<<endl;
            cout<<"招牌地图"<<endl;
            cout<<"2.1 大型地图      2.2 多NPC地图 "<<endl;
            cout<<"    13.2[            15.0["<<endl<<endl;
            cout<<endl<<endl;
            cout<<"__________________________________________________________________________________________________________________________"<<endl;
            cout<<"其他功能"<<endl;
            cout<<"3.1 更换皮肤      3.2 疾跑模式  "<<endl;
            cout<<"    -25[             -20["<<endl;
            cin>>d;
            if(d==1){
                sum+=8.5;
            }else if(d==2){
                sum+=10.3;
            }else if(d==3){
                sum+=12.5;
            }else if(d==4){
                sum+=3.8;
            }else if(d==5){
                sum+=9.6;
            }
        }else if(d==3.2&&sum<20){
            cout<<"游戏经验不足。";
            continue;
        }
        if(d==3.1&&sum>=25){
            sum-=25;
            cout<<"输入皮肤(><!@#$%&*-+:)";
            cin>>ss;
            cout<<"_________________________________________________________________________________________________________________________"<<endl;
            cout<<"新手地图"<<endl;
            cout<<"1.1 初始地图      1.2 森林地图      1.3 海边地图      1.4 空白地图       1.5 农场地图     "<<endl;
            cout<<"    8.5[            10.3[              12.5[              3.8[                9.6[          "<<endl<<endl;
            cout<<"                                              "<<endl;
            cout<<"                                              "<<endl;
            cout<<"__________________________________________________________________________________________________________________________"<<endl;
            cout<<"招牌地图"<<endl;
            cout<<"2.1 大型地图      2.2 多NPC地图 "<<endl;
            cout<<"    13.2[            15.0["<<endl<<endl;
            cout<<endl<<endl;
            cout<<"__________________________________________________________________________________________________________________________"<<endl;
            cout<<"其他功能"<<endl;
            cout<<"3.1 更换皮肤      3.2 疾跑模式  "<<endl;
            cout<<"    -25[             -20["<<endl;
            cin>>d;
            if(d==1.1){
                sum+=8.5;
            }else if(d==1.2){
                sum+=10.3;
            }else if(d==1.3){
                sum+=12.5;
            }else if(d==1.4){
                sum+=3.8;
            }else if(d==1.5){
                sum+=9.6;
            }else if(d==2.1){
                sum+=13.2;
            }
        }else if(d==6&&sum<=25){
            cout<<"游戏经验不足!"<<endl;
            cout<<"1.1 初始地图      1.2 森林地图      1.3海边地图      1.4 空白地图       1.5 农场地图"<<endl;
            cout<<"2.1 大型地图new"<<endl;
            cin>>d;
            if(d==1.1){
                sum+=8.5;
            }else if(d==1.2){
                sum+=10.3;
            }else if(d==1.3){
                sum+=12.5;
            }else if(d==1.4){
                sum+=3.8;
            }else if(d==1.5){
                sum+=9.6;
            }else if(d==2.1){
                sum+=13.2;
            }
        }
        if(d==2.2){
            long long cnt=0,baoshi=7;
            int b1=5,c1=8,a1,b2=6,c2=4,a2;
            while(1){
                srand(time(0));
                a1=rand()%4+1;
                a=getch();
                system("cls");
                if(a1==1){
                    b1++;
                }
                if(a1==2){
                    c1--;
                }
                if(a1==3){
                    c1++;
                }
                if(a1==4){
                    b1--;
                }
                srand(time(0));
                a2=rand()%4+1;
                if(a2==1){
                    b2++;
                }
                if(a2==2){
                    c2--;
                }
                if(a2==3){
                    c2++;
                }
                if(a2==4){
                    b2--;
                }
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                wy(b,c,ss,b1,c1,b2,c2,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==1.1){
            long long cnt=0,baoshi=7;
            int b1=5,c1=8,a1;
            while(1){
                srand(time(0));
                a1=rand()%4+1;
                a=getch();
                system("cls");
                if(a1==1){
                    b1++;
                }
                if(a1==2){
                    c1--;
                }
                if(a1==3){
                    c1++;
                }
                if(a1==4){
                    b1--;
                }
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                ww(b,c,ss,b1,c1,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==1.2){
            long long cnt=0,baoshi=7;
            int b1=2,c1=7,a1;
            while(1){
                srand(time(0));
                a1=rand()%4+1;
                a=getch();
                system("cls");
                if(a1==1){
                    b1++;
                }
                if(a1==2){
                    c1++;
                }
                if(a1==3){
                    b1--;
                }
                if(a1==4){
                    c1--;
                }
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                we(b,c,ss,b1,c1,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==1.3){
            long long cnt=0,baoshi=7;
            while(1){
                a=getch();
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                wr(b,c,ss,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }

        if(d==1.4){
            long long cnt=0,baoshi=7;
            while(1){
                a=getch();
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                w(b,c,ss,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==1.5){
            long long cnt=0,baoshi=7;
            int b1=8,c1=8,a1;
            while(1){
                srand(time(0));
                a1=rand()%4+1;
                if(a1==1){
                    b1++;
                }
                if(a1==2){
                    c1++;
                }
                if(a1==3){
                    b1--;
                }
                if(a1==4){
                    c1--;
                }
                a=getch();
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                wp(b,c,ss,b1,c1,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==2.1){
            long long cnt=0,baoshi=7;
            while(1){
                a=getch();
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                ws(b,c,ss,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }

    }
}
bool niubi(string nam){
    system("cls");
    cout<<"          牛     逼     浏     览     器            "<<endl;
    cout<<"                  |\     |    "<<endl;
    cout<<"                  | \    |    "<<endl;
    cout<<"               ___|__\___|    "<<endl;
    cout<<"              /   |   \  |\    "<<endl;
    cout<<"              \__|____\_|/    "<<endl;
    cout<<"                  |     \|    "<<endl;
    cout<<nam<<endl;
    cout<<"          A  生活常识"<<endl;
    cout<<"A01 洗发水能喝吗?        A02 我们熬夜会不会影响身高发育?"<<endl;
    cout<<"A03 晒太阳真的能长高吗?  A04 白酒可以代替料酒做菜吗?"<<endl;
    cout<<"A05 我们每天一般刷几次牙?A06 我们每天一般洗几次澡?"<<endl;
    cout<<"          B  百科常识"<<endl;
    cout<<"B01 十二时辰是哪些?      B02 古代人在各个年龄段被称作什么?"<<endl;
    string pp;
    cin>>pp;
    if(pp=="A01"){
        cout<<"不能";
    }
    if(pp=="A02"){
        cout<<"熬夜会不会影响长高";
    }
    if(pp=="A03"){
        cout<<"晒太阳不能直接使人长高";
    }
    if(pp=="A04"){
        cout<<"可以临时代替";
    }
    if(pp=="A05"){
        cout<<"2至3次";
    }
    if(pp=="A06"){
        cout<<"1次";
    }
    if(pp=="B01"){
        cout<<"子丑寅卯辰巳无为申酉戌亥";
    }
    char mnmn=getch();
    return 0;
}
string b;
bool rijiben(){
    system("cls");
    cout<<b<<endl;
    cin>>b;
}
void jinzhi(){
    system("cls");
    int n,a[10005]={0},m=0,i=0,k=0;
    cin>>n>>k;
    m=n;
    while(n){
        i++;
        a[i]=n%k;
        n/=k;
    }
    for(int j=i;j>=1;j--){
        cout<<a[j];
    }
    system("pause");
}
bool dangan(){
    system("cls");
    cout<<"输入名字:";
    string o;
    cin>>o;
    cout<<"输入年龄:";
    string p;
    cin>>p;
    cout<<"输入学历:";
    string q;
    cin>>q;
    cout<<"输入身高:";
    string r;
    cin>>r;
    cout<<"输入体重:";
    string s;
    cin>>s;
    cout<<"输入生肖:";
    string t;
    cin>>t;
    cout<<"输入性格:";
    string u;
    cin>>u;
    cout<<"输入星座:";
    string v;
    cin>>v;
    cout<<o<<"的个人档案"<<endl;
    cout<<setw(18)<<"|名字:"<<o<<setw(18)<<"      年龄:"<<p<<"|"<<endl;
    cout<<setw(18)<<"|学历:"<<q<<setw(18)<<"      身高:"<<r<<"|"<<endl;
    cout<<setw(18)<<"|体重:"<<s<<setw(18)<<"      生肖:"<<t<<"|"<<endl;
    cout<<setw(18)<<"|性格:"<<u<<setw(18)<<"      星座:"<<v<<"|"<<endl;
    char ee;
    ee=getch();
    if(ee=='t'){
        return 0;
    }
}
bool caishu(){
    system("cls");
    int n,a,cnt=0;
    for(int i=1;i<=7;i++){
        cout<<"请输入一个5以内整数:";
        cin>>n;
        srand(time(0));
        a=rand()%5+1;
        if(n==a){
            cout<<"中奖了";
            cnt++;
        }else{
            cout<<"没中奖";
        }
        cout<<",中奖号是:"<<a;
        cout<<endl;
    }
    cout<<"游戏结束,您一共中奖了"<<cnt<<"次"<<endl;
    char aqqaf;
    aqqaf=getch();
}
bool jisuanqi(){
    system("cls");
    cout<<"_________________________________"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|  1   |   2  |    3 |    4 | 5 |"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|______|______|______|______|___|"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|   6  |   7  |    8 |    9 | 0 |"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|______|______|______|______|___|"<<endl;
    cout<<"|          |         |          |"<<endl;
    cout<<"|          |         |          |"<<endl;
    cout<<"|    +     |    -    |    ×    |"<<endl;
    cout<<"|          |         |          |"<<endl;
    cout<<"|__________|_________|__________|"<<endl;
    cout<<"|          |                    |"<<endl;
    cout<<"|   ÷     |                    |"<<endl;
    cout<<"|__________|                    |"<<endl;
    cout<<"|                               |"<<endl;
    cout<<"|                               |"<<endl;
    cout<<"|                               |"<<endl;
    string a1,c3;
    char b2;
    int x4=0,y5=0,z6=0;
    int i7=0,j8=0;
    while(1){
        a1[i7]=getch();
        if(!(a1[i7]>='0'&&a1[i7]<='9')){
            break;
        }
        cout<<a1[i7];
        x4=x4*10+a1[i7]-'0';
        i7++;
    }
    b2=getch();
    y5=(int)b2;
    cout<<b2;
    while(1){
        c3[j8]=getch();
        if(!(c3[j8]>='0'&&c3[j8]<='9')){
            break;
        }
        cout<<c3[j8];
        z6=z6*10+c3[j8]-'0';
        j8++;
    }
    if(y5==43){
        cout<<"="<<x4+z6;
    }
    if(y5==45){
        cout<<"="<<x4-z6;
    }
    if(y5==42){
        cout<<"="<<x4*z6;
    }
    if(y5==47){
        cout<<"="<<x4*1.0/z6;
    }
    cout<<endl;
    system("pause");
    return 0;
}
bool xitong(){
    system("cls");
    cout<<"                               隐藏应用\n";
    cout<<"                     01作文生成器    02拟抹输入法"<<endl;
    char a;
    a=getch();
    if(a=='1'){

    }
    if(a=='2'){

    }
    return 0;
}
char a;
char sss;
string word_[6],text_[6];
int cc[6],ccnt,u[7]={65,65,65,65,65,65,65},l[7]={97,97,97,97,97,97,97},k[7]={33,33,33,33,33,33,33};
string nam;
int main(){
    cout<<"                                  "<<endl;
    cout<<"                 /          "<<endl;
    cout<<"                /                "<<endl;
    cout<<"          ████         "<<endl;
    cout<<"       █     /   █      "<<endl;
    cout<<"    █       /      █     "<<endl;
    cout<<"    █      /       █       "<<endl;
    cout<<"    █      \      █         "<<endl;
    cout<<"    █       /      █         "<<endl;
    cout<<"      █    /     █      操作系统"<<endl;
    cout<<"         ████"<<endl;
    cout<<"          /   "<<endl;
    cout<<"         /     "<<endl;
    cout<<"            "<<endl;
    cout<<"             "<<endl;
    for(int i=1;i<=50;i++){
        cout<<"█";
        Sleep(10);
    }
    Sleep(1000);
    cin>>nam;
    system("cls");
    cout<<"欢迎";
    Sleep(2000);
    system("cls");
    while(1){
        system("cls");
        cout<<"                         ";
        system("time/T");
        cout<<"                         ";
        auto now = chrono::system_clock::now();
        // 转换为time_t类型
        time_t tt = chrono::system_clock::to_time_t(now);
        // 转换为tm结构
        tm *time_tm = localtime(&tt);
        // 格式化输出时间
        cout << 1900 + time_tm->tm_year<< "年 "  << ",";
        cout << 1 + time_tm->tm_mon<< "月 "  << ",";
        cout << time_tm->tm_mday<< "日 "  << endl;
        cout<<"               _________________"<<endl;
        cout<<"               |O键打开隐藏应用|"<<endl;
        cout<<"_______________|_______________|_______________________________"<<endl;
        cout<<"| OS   |s   sX| Hi!_ |姓名:| 45 23|牛逼  |____  | 扫雷 |进制 |"<<endl;
        cout<<"|Office|/ //  | ____ |小明  | 2 ?  |浏览  |7+8-9 |*??*??|3->11|"<<endl;
        cout<<"|      |l+z/ s| ____ |年龄:9|9  56 |器 NB |4*5/6 |???2*?|10->2|"<<endl;
        cout<<"|______|___/__|______|______|______|______|______|______|_____|"<<endl;
        cout<<"   1       2     3       4     5      6      7      8      9"<<endl;
        for(int i=1;i<=ccnt;i++){
            if(cc[i]==1){
                cout<<"_______"<<endl;
                cout<<"|word |"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<(char)u[i]<<endl;
            }else if(cc[i]==2){
                cout<<"_______"<<endl;
                cout<<"|文本 |"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<(char)l[i]<<endl;
            }else if(cc[i]==3){
                cout<<"_______"<<endl;
                cout<<"|文件 |"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<(char)k[i]<<endl;
            }
        }
        a=getch();
        if(a=='0'){
            return 0;
        }
        if(a=='1'){
            office(nam);
        }
        if(a=='2'){
            ditu(nam);
        }
        if(a=='3'){
            rijiben();
        }
        if(a=='4'){
            dangan();
        }
        if(a=='5'){
            caishu();
        }
        if(a=='6'){
            niubi(nam);
        }
        if(a=='7'){
            jisuanqi();
        }
        if(a=='8'){
            saolei();
        }
        if(a=='9'){
            jinzhi();
        }
        for(int i=0;i<=ccnt;i++){
            if(a==(char)(u[i])){
                system("cls");
                cout<<"word\n";
                cout<<"________________________________________________________________________\n";

                cout<<"word 2025使用方法:"<<endl;
                cout<<"1.@+S+n表示n个空格  2.@+!表示两次换行  3.?+6表示一个大问号"<<endl;
                cout<<"______________________________________________________________________"<<endl;
                cout<<word_[i];
                char au;

                for(long long j=1;j<=10000000000;j++){
                    au=getch();
                    word_[i]+=au;
                    if(au=='`'){
                        break;
                    }else if(au=='@'){
                        au=getch();
                        if(au=='S'){
                            au=getch();
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                        }
                    }else{
                        cout<<au;
                    }
                    if(au=='@'){
                        au=getch();
                        if(au=='!'){
                            for(int i=1;i<=109;i++){
                                cout<<"2";
                            }
                        }
                    }
                    if(au=='?'){
                        au=getch();
                        if(au=='6'){
                            au=getch();
                            cout<<endl;
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<" ¨€¨€¨€"<<endl;
                            word_[i]+=" ¨€¨€¨€\n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"¨€    ¨€"<<endl;
                            word_[i]+="¨€    ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"     ¨€"<<endl;
                            word_[i]+="     ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"    ¨€"<<endl;
                            word_[i]+="    ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"   ¨€"<<endl;
                            word_[i]+="   ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"   ¨€"<<endl;
                            word_[i]+="   ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"     "<<endl;
                            word_[i]+=" n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"   ¨€"<<endl;
                            word_[i]+="   ¨€n";
                        }
                    }
                    if(au=='b'){
                        break;
                    }
                }
            }else if(a==(char)(l[i])){
                system("cls");
                cout<<"文本\n";
                cout<<"____________________________________________\n";
                cout<<text_[i];
                for(int o=1;o<=2000;o++){
                    char o3=getch();
                    cout<<o3;
                    text_[i]+=o3;
                    if(o3=='b'){
                        text_[i].erase(text_[i].size()-1,1);
                        break;
                    }
                }
            }else if(a==(char)(k[i])){
                system("cls");
                cout<<"文件\n";
                cout<<"________________________________________________________________________\n";
                char o3=getch();
                if(o3=='b'){
                    break;
                }
            }
        }
        if(a==' '){
            system("cls");
            cout << 1900 + time_tm->tm_year<< "年 "  << ",";
            cout << 1 + time_tm->tm_mon<< "月 "  << ",";
            cout << time_tm->tm_mday<< "日 "  << endl;
        cout<<"               _________________"<<endl;
        cout<<"               |O键打开隐藏应用|"<<endl;
        cout<<"_______________|_______________|_______________________________"<<endl;
        cout<<"| OS   |s   sX| Hi!_ |姓名:| 45 23|牛逼  |____  | 扫雷 |进制 |"<<endl;
        cout<<"|Office|/ //  | ____ |小明  | 2 ?  |浏览  |7+8-9 |*??*??|3->11|"<<endl;
        cout<<"|      |l+z/ s| ____ |年龄:9|9  56 |器 NB |4*5/6 |???2*?|10->2|"<<endl;
        cout<<"|______|___/__|______|______|______|______|______|______|_____|"<<endl;
        cout<<"   1       2     3       4     5      6      7      8      9"<<endl;
            cout<<""<<endl;
            cout<<"...        ..."<<endl;
            cout<<"..__________.."<<endl;
            cout<<"  |新建:  |                         "<<endl;
            cout<<"  |________|            /          "<<endl;
            cout<<"  |1.word  |           /                "<<endl;
            cout<<"  |2.记事本|     ████         "<<endl;
            cout<<"  |3.文件夹|   █     /   █      "<<endl;
            cout<<"  |________|█       /      █     "<<endl;
            cout<<"            █      /       █       "<<endl;
            cout<<"            █      \      █         "<<endl;
            cout<<"            █       /      █         "<<endl;///
            cout<<"              █    /     █      操作系统"<<endl;
            cout<<"                 ████"<<endl;
            cout<<"                  /   "<<endl;
            cout<<"                 /     "<<endl;
            cout<<"            "<<endl;
            cout<<"             "<<endl;
            cin>>sss;
            if(sss=='1'){
                cc[++ccnt]=1;
                u[ccnt]=u[ccnt-1]+1;
            }else if(sss=='2'){
                cc[++ccnt]=2;
                l[ccnt]=l[ccnt-1]+1;
            }else if(sss=='3'){
                cc[++ccnt]=3;
                k[ccnt]=k[ccnt-1]+1;
            }
        }
        if(a=='O'||a=='o'){
            xitong();
        }
    }
    return 0;
}
 


1
王牌工作室官方
王牌工作室官方
新手光能
新手光能

1. 未看见编译方法,不懂如何安装

2. 一个操作系统就这么一个文件,行太多了,建议拆分成多个文件

如果需要我帮助可以找我

1
1
任沐哲
任沐哲
高级光能
高级光能

厉害了,老同学。

只不过...

0
骆芃瑀
骆芃瑀
资深守护
资深守护

李家兴,跳舞机做好了

0
0
李家兴
李家兴
修练者
修练者

给你们一个略文改进版:

#include<iostream>
#include<iomanip>
#include<cmath>
#include<algorithm>
#include<Windows.h>
#include<cstdlib>
#include<conio.h>
#include <chrono>
#include <ctime>
using namespace std;
//二级函数
void ww(int b,int c,char ss,int &b1,int &c1,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s','|'},
            {'|',' ',' ',' ',' ','/','/','/','/','/',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ','/',' ','z','m','/',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ','s',' ','/','l',' ','c','/',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ','s',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x[b1][c1]!=x[b][c]){
        x[b1][c1]='N';
    }
    if(b1>16||c1>11){
        b1=5;
        c1=8;
    }
    for(int i=0;i<11;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void wy(int b,int c,char ss,int &b1,int &c1,int &b2,int &c2,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ','s',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','h','h','h','|'},
            {'|',' ',' ','s',' ',' ','s',' ',' ',' ',' ',' ',' ','h','h','|'},
            {'|','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ','s','h','h','|'},
            {'|','s','l','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','h','|'},
            {'|','z',' ','/',' ',' ',' ',' ',' ',' ',' ',' ','h','h','h','|'},
            {'|','c',' ',' ',' ',' ','s',' ',' ',' ','s',' ','h','h','h','|'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x[b1][c1]!=x[b][c]){
        x[b1][c1]='N';
    }
    if(x[b2][c2]!=x[b][c]){
        x[b2][c2]='X';
    }
    if(b1>16||c1>11){
        b1=5;
        c1=8;
    }
    if(b2>16||c2>11){
        b2=6;
        c2=4;
    }
    for(int i=0;i<11;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void we(int b,int c,char ss,int &b1,int &c1,long long &baoshi){
    char x[122][122]={
        {' ','_','_','_','_','_','_','_','_','_','_','_',' '},
        {'|',' ',' ',' ','s',' ',' ','s',' ','s',' ',' ','|'},
        {'|','s',' ','s',' ','s',' ',' ',' ',' ',' ','s','|'},
        {'|',' ',' ',' ','/','/','/','/','/',' ','s',' ','|'},
        {'|',' ','s',' ','/','z',' ','l','/','s',' ',' ','|'},
        {'|',' ',' ','s','/',' ',' ','c','/',' ',' ','s','|'},
        {'|','s',' ',' ',' ',' ','s',' ',' ',' ','s',' ','|'},
        {'|','_','s','_','_','_','_','_','s','_','_','_','|'},
    };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x[b1][c1]!=x[b][c]){
        x[b1][c1]='X';
    }
    if(b1>16||c1>11){
        b1=2;
        c1=7;
    }
    for(int i=0;i<8;i++){//s
        for(int j=0;j<13;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void wr(int b,int c,char ss,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s','|'},
            {'|',' ',' ',' ',' ','/','/','/','/','/',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ','/',' ','z','m','/',' ',' ',' ','h','h','h'},
            {'|',' ',' ','s',' ','/','l',' ','c','/',' ',' ',' ','h','h','h'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','h','h','h'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','s','h','h'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','h','h'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    for(int i=0;i<10;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void w(int x,int y,char ss,long long &baoshi){
    char s[100][100]={
        {'_','_','_','_','_','_','_','_'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|',' ',' ',' ',' ',' ',' ','|'},
        {'|','_','_','_','_','_','_','|'},
    };
    s[x][y]=ss;
    for(int i=0;i<8+1;i++){
        for(int j=0;j<7+1;j++){
            cout<<s[i][j];
        }
        cout<<endl;
    }
    cout<<"位置:"<<x<<','<<y;
}
void wp(int b,int c,char ss,int &b1,int &c1,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ','_','_','_','_','_','|'},
            {'|','l','c','z','/',' ',' ',' ',' ',' ','|',' ',' ',' ','|','|'},
            {'|','/','/','/','/',' ',' ',' ',' ',' ','|',' ',' ',' ','|','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','_','_','_','|','|'},
            {'|','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/',' ',' ',' ',' ','/','/',' ','/',' ',' ',' ','s',' ','|'},
            {'|','/',' ',' ',' ',' ','/',' ',' ','/',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/',' ',' ','/',' ',' ','/',' ',' ',' ',' ',' ','|'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else

    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x[b1][c1]!=x[b][c]){
        x[b1][c1]='Z';
    }
    if(b1>11||c1>16){
        b1=8;
        c1=8;
    }
    for(int i=0;i<11;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
void ws(int b,int c,char ss,long long &baoshi){
    //if(n==1){
        char x[122][122]={
            {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
            {'|',' ','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','z',' ',' ',' ',' ',' ',' ',' ','_','_','_','_','_',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','l',' ',' ','/',' ',' ',' ',' ',' ','|',' ',' ',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/','/',' ',' ',' ',' ',' ','|',' ',' ',' ','|',' ',' ',' ',' ',' ','s',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ','c',' ','|','_','_','_','|',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','m',' ',' ',' ','s','s',' ','/',' ',' ',' ','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/',' ',' ',' ',' ',' ','s',' ',' ',' ',' ',' ',' ',' ','s',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','m',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/',' ','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ','/','m','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','c',' ',' ',' ','|'},
            {'|',' ','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','z',' ',' ',' ',' ',' ',' ',' ','l',' ',' ',' ','|'},
            {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/','/','/','/',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','s','s','s','s','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
            {'|','/','/','/','/','/','/',' ',' ','/',' ',' ',' ',' ',' ',' ',' ',' ',' ','z',' ',' ',' ',' ','|'},
            {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
        };
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    for(int i=0;i<20;i++){//s
        for(int j=0;j<25;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
char x[122][122]={
    {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','z','|'},
    {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
};
void wq(int b,int c,char ss,char xx,bool x2,long long &baoshi){
    //if(n==1){
    if(x[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(x[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(x[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(x[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(3400);
        baoshi+=2;
        system("cls");
    }//else
    if(x[b][c]!='/'){
        x[b][c]=ss;
    }
    if(x2==1){
        x[b][c]=xx;
    }
    for(int i=0;i<10;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<x[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
    cout<<endl<<"饱食度:";
    for(int i=1;i<=baoshi;i++){
        cout<<"■";
    }
    for(int i=1;i<=7-baoshi;i++){
        cout<<"□";
    }
}
char qx[122][122]={
    {' ','_','_','_','_','_','_','_','_','_','_','_','_','_','_',' '},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|'},
    {'|','_','_','_','_','_','_','_','_','_','_','_','_','_','_','|'},
};
void wq(int b,int c,char ss,char xx,bool x2){
    //if(n==1){
    if(qx[b][c]=='c'){
        system("cls");
        cout<<"睡觉中";
        Sleep(4500);
        system("cls");
    }else if(qx[b][c]=='m'){
        system("cls");
        cout<<"拉屎中";
        Sleep(3000);
        system("cls");
    }else if(qx[b][c]=='l'){
        system("cls");
        cout<<"烧饭中";
        Sleep(3400);
        system("cls");
    }else if(qx[b][c]=='z'){
        system("cls");
        cout<<"吃饭中";
        Sleep(2900);
        system("cls");
    }//else
    if(qx[b][c]!='/'){
        qx[b][c]=ss;
    }
    if(x2==1){
        x[b][c]=xx;
    }
    for(int i=0;i<10;i++){//s
        for(int j=0;j<16;j++){//h
            cout<<qx[i][j];
        }
        cout<<endl;
    }
    cout<<endl<<"位置:"<<b<<','<<c<<endl;
}
char aon[105][105],bon[105][105];
int dir[10][2]={{0,0},{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}};
char fo(int x,int y,int n,int m){
    int cnt=0;
    for(int i=1;i<=8;i++){
        int dx=x+dir[i][0];
        int dy=y+dir[i][1];
        if(dx>=1&&dx<=n&&dy>=1&&dy<=m&&aon[dx][dy]=='*'){
            cnt++;
        }
    }
    return cnt+'0';
}
//一级函数
int saolei(){
    system("cls");
    int n,m;
    int sum=0,num=0,cnt=0;
    cout<<"请选择难度:1.简单3*3  2.普通6*6  3.困难10*10\n";
    int wwww;
    cin>>wwww;
    if(wwww==1){
        n=3,m=3;
    }
    if(wwww==2){
        n=6,m=6;
    }
    if(wwww==1){
        n=10,m=10;
    }
    cout<<"地雷图加载中……\n";
    int num2=(n*m/3);
    Sleep(1000);
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m;j++){
            int pp=0;
            srand(time(0));
            pp=rand()%5+1;
            Sleep(1000);
            if(pp==2&&cnt<=num2){
                aon[i][j]='*';
                cnt++;
            }else{
                aon[i][j]='?';
            }
        }
    }
    cout<<"加载成功\n";
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m;j++){
            if(aon[i][j]=='*'){
                bon[i][j]='*';
            }else{
                bon[i][j]=fo(i,j,n,m);
            }
        }
    }
    int x,y;
    while(1){
        bool f=0;
        cin>>x>>y;
        if(bon[x][y]!='*'){
            sum+=bon[x][y]-'0';
            for(int i=1;i<=n;i++){
                for(int j=1;j<=m;j++){
                    if(bon[i][j]!='*'){
                        if((x==i&&y==j)&&f==0){
                            cout<<bon[i][j];
                            f=1;
                            continue;
                        }
                        cout<<"?";
                    }else{
                        cout<<"?";
                    }
                }
                cout<<endl;
            }
        }else{
            break;
        }
        cout<<endl<<endl;
    }
    cout<<"Game over   得分:"<<sum;
    Sleep(5000);
    return 0;
}
bool office(string nam){
    system("cls");
    int a,b,z;
    cout<<"                                  "<<endl;
    cout<<"                 /          "<<endl;
    cout<<"                /                "<<endl;
    cout<<"          ████         "<<endl;
    cout<<"       █     /   █      "<<endl;
    cout<<"    █       /      █     "<<endl;
    cout<<"    █      /       █       "<<endl;
    cout<<"    █      \      █           Office "<<endl;
    cout<<"    █       /      █         "<<endl;
    cout<<"      █    /     █          "<<endl;
    cout<<"         ████"<<endl;
    cout<<"          /   "<<endl;
    cout<<"         /     "<<endl;
    cout<<"            "<<endl;
    cout<<"             "<<endl;
    for(int i=1;i<=50;i++){
        cout<<"█";
        Sleep(10);
    }
    Sleep(1000);
    system("cls");
    while(1){
        char ca=' ';
        system("cls");
        cout<<"                                  OS Office                                        "<<endl;
        cout<<nam<<endl;
        cout<<"                                  \n";
        cout<<"                     \n";
        cout<<"1.------- 2.-------  3.-------     4.------      5.------  \n";
        cout<<"  | █矩|    | █  |     | | | |       | word|       | draw| \n";
        cout<<"  | █阵|    |S=a*a|    |||||||       | 2025|       |画图 | \n";
        cout<<"  -------   -------    -------       ------        ------  \n";
        cout<<"                           \n";
        cout<<"                             \n";
        cout<<"                           \n";
        cout<<"                          \n";
        cout<<"                        \n";
        cout<<"                               \n";
        ca=getch();
        system("cls");
        switch(ca){
            case '5':
            while(1){
                char xx;
                char ss='+',a;
                int ep=0,b=0,c=0;
                while(1){
                    a=getch();
                    system("cls");
                    if(ep==1){
                        if(a=='w'){
                            b-=2;
                        }
                        if(a=='s'){
                            b+=2;
                        }
                        if(a=='d'){
                            c+=2;
                        }
                        if(a=='a'){
                            c-=2;
                        }
                    }else {
                        if(a=='w'){
                            b-=1;
                        }
                        if(a=='s'){
                            b+=1;
                        }
                        if(a=='d'){
                            c+=1;
                        }
                        if(a=='a'){
                            c-=1;
                        }
                    }
                    bool x2;
                    if(a=='S'){
                        x2=1;
                        xx='s';
                    }
                    if(a=='b'){
                        return 0;
                    }
                    wq(b,c,ss,xx,x2);
                }
            }
        case '4':

            system("cls");

            char a;

            cout<<"word 2025使用方法:"<<endl;
            cout<<"1.@+S+n表示n个空格  2.@+!表示两次换行  3.?+6表示一个大问号"<<endl;
            cout<<"______________________________________________________________________"<<endl;

            for(long long i=1;i<=10000000000;i++){
                a=getch();


                if(a=='`'){
                    break;
                }else if(a=='@'){
                    a=getch();
                    if(a=='S'){
                        a=getch();
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                    }
                }else{
                    cout<<a;
                }
                if(a=='@'){
                    a=getch();
                    if(a=='!'){
                        for(int i=1;i<=109;i++){
                            cout<<"2";
                        }
                    }
                }
                if(a=='?'){
                    a=getch();
                    if(a=='6'){
                        a=getch();
                        cout<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<" ¨€¨€¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"¨€    ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"     ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"    ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"   ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"   ¨€"<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"     "<<endl;
                        for(int i=1;i<=a-'0';i++){
                            cout<<" ";
                        }
                        cout<<"   ¨€"<<endl;
                    }
                }
            }

        case 'a':

            break;
            return 0;

        case '3':

            int ppa[40003],n;
            cin>>n;
            system("cls");
            cout<<"0    5    10   15   20   25   30   35   40   45   50   55\n";
            for(int i=1;i<=n;i++){
                for(int k=0;i<i;k++){
                    for(int l=1;l<=ppa[i-k];i++){
                        cout<<"█";
                    }
                    cout<<""<<ppa[i-k];
                }
                cin>>ppa[i];
                for(int j=1;j<=ppa[i];j++){
                    cout<<"█";
                }
                cout<<""<<endl;
            }
            break;

        case '1':
            system("cls");
            int m;
            int nn;
            cout<<"输入行数:";
            cin>>nn;
            cout<<"输入列数:";
            cin>>m;
            cout<<"_____________________________________________"<<endl<<endl;
            for(int i=1;i<=nn;i++){
                cout<<" ";
                for(int j=1;j<=m;j++){
                    cout<<"██";
                }
                cout<<endl;
            }
            break;
        //}
        case '2':
            cout<<"1.长方形 2.正方形 3.圆\n";
            int ii,jj,kk;
            cin>>ii;
            if(ii==1){
                cout<<"长:";
                cin>>jj;
                cout<<"宽:";
                cin>>kk;
                cout<<"\n面积是:"<<kk*jj;
            }else if(ii==2){
                cout<<"边长:";
                cin>>jj;
                cout<<"\n面积是:"<<jj*jj;
            }else if(ii==2){
                cout<<"半径:";
                cin>>jj;
                cout<<"\n面积是:"<<3.1415926535*jj*jj;
            }
        case 'p':
            return 0;
        }
        string aqqak;
        cin>>aqqak;
        break;
    }
}
string le;
double sum=0;
bool ditu(string nam){
    system("cls");
    char a,ss='+';
    int b=0,c=0;
    double d;
    cout<<"                     |                                ____________             "<<endl;
    cout<<"                     |                                |  /       |                "<<endl;
    cout<<"             ————————                         | /----/   |                 "<<endl;
    cout<<"                    /`       ___|__    ___|___        |/`   /    |                          "<<endl;
    cout<<"                   /  `         |  _|_/   |  |        |  ` / `   |                                     "<<endl;
    cout<<"                  /    `        |/  |     | `|        |   / ` `  |                               "<<endl;
    cout<<"                 /      `      /    |        `        |__/_______|                                "<<endl;
    cout<<"                /        `    /     |__________|                                                   "<<endl;
    cout<<" 2.0"<<endl;
    Sleep(2000);
    system("cls");
    if(le==""){
        cout<<"1.本机账号一键登录   2.另外登录";
        int www22;
        cin>>www22;
        if(www22==1){
            le=nam;
        }else{
            cout<<"请输入一个用户名:";
            cin>>le;
        }
    }
    system("cls");
    cout<<"欢迎,祝您玩的开心"<<endl;
    Sleep(1000);
    cout<<"使用方法:ASDW移动,D开始,s是树,m是马桶,l是炉子,c是床,z是桌子。";
    Sleep(1400);
    while(1){
        system("cls");
        cout<<"玩家:"<<le<<endl;
        cout<<"游戏经验( [ ):"<<sum<<endl;
        cout<<"_________________________________________________________________________________________________________________________"<<endl;
        cout<<"新手地图"<<endl;
        cout<<"1.1 初始地图      1.2 森林地图      1.3 海边地图      1.4 空白地图       1.5 农场地图     "<<endl;
        cout<<"    8.5[            10.3[              12.5[              3.8[                9.6[          "<<endl<<endl;
        cout<<"                                              "<<endl;
        cout<<"                                              "<<endl;
        cout<<"__________________________________________________________________________________________________________________________"<<endl;
        cout<<"招牌地图"<<endl;
        cout<<"2.1 大型地图      2.2 多NPC地图 "<<endl;
        cout<<"    13.2[            15.0["<<endl<<endl;
        cout<<endl<<endl;
        cout<<"__________________________________________________________________________________________________________________________"<<endl;
        cout<<"其他功能"<<endl;
        cout<<"3.1 更换皮肤      3.2 疾跑模式  "<<endl;
        cout<<"    -25[             -20["<<endl;
        cin>>d;
        bool ep=0;
        if(d==0){
            system("cls");
            break;
        }
        if(d==2.2){
            sum+=15.0;
        }
        if(d==1.1){
            sum+=8.5;
        }else if(d==1.2){
            sum+=10.3;
        }else if(d==1.3){
            sum+=12.5;
        }else if(d==1.4){
            sum+=3.8;
        }else if(d==1.5){
            sum+=9.6;
        }else if(d==2.1){
            sum+=13.2;
        }else if(d==7&&sum>=20){
            sum-=20;
            ep=1;
            cout<<"_________________________________________________________________________________________________________________________"<<endl;
            cout<<"新手地图"<<endl;
            cout<<"1.1 初始地图      1.2 森林地图      1.3 海边地图      1.4 空白地图       1.5 农场地图     "<<endl;
            cout<<"    8.5[            10.3[              12.5[              3.8[                9.6[          "<<endl<<endl;
            cout<<"                                              "<<endl;
            cout<<"                                              "<<endl;
            cout<<"__________________________________________________________________________________________________________________________"<<endl;
            cout<<"招牌地图"<<endl;
            cout<<"2.1 大型地图      2.2 多NPC地图 "<<endl;
            cout<<"    13.2[            15.0["<<endl<<endl;
            cout<<endl<<endl;
            cout<<"__________________________________________________________________________________________________________________________"<<endl;
            cout<<"其他功能"<<endl;
            cout<<"3.1 更换皮肤      3.2 疾跑模式  "<<endl;
            cout<<"    -25[             -20["<<endl;
            cin>>d;
            if(d==1){
                sum+=8.5;
            }else if(d==2){
                sum+=10.3;
            }else if(d==3){
                sum+=12.5;
            }else if(d==4){
                sum+=3.8;
            }else if(d==5){
                sum+=9.6;
            }
        }else if(d==3.2&&sum<20){
            cout<<"游戏经验不足。";
            continue;
        }
        if(d==3.1&&sum>=25){
            sum-=25;
            cout<<"输入皮肤(><!@#$%&*-+:)";
            cin>>ss;
            cout<<"_________________________________________________________________________________________________________________________"<<endl;
            cout<<"新手地图"<<endl;
            cout<<"1.1 初始地图      1.2 森林地图      1.3 海边地图      1.4 空白地图       1.5 农场地图     "<<endl;
            cout<<"    8.5[            10.3[              12.5[              3.8[                9.6[          "<<endl<<endl;
            cout<<"                                              "<<endl;
            cout<<"                                              "<<endl;
            cout<<"__________________________________________________________________________________________________________________________"<<endl;
            cout<<"招牌地图"<<endl;
            cout<<"2.1 大型地图      2.2 多NPC地图 "<<endl;
            cout<<"    13.2[            15.0["<<endl<<endl;
            cout<<endl<<endl;
            cout<<"__________________________________________________________________________________________________________________________"<<endl;
            cout<<"其他功能"<<endl;
            cout<<"3.1 更换皮肤      3.2 疾跑模式  "<<endl;
            cout<<"    -25[             -20["<<endl;
            cin>>d;
            if(d==1.1){
                sum+=8.5;
            }else if(d==1.2){
                sum+=10.3;
            }else if(d==1.3){
                sum+=12.5;
            }else if(d==1.4){
                sum+=3.8;
            }else if(d==1.5){
                sum+=9.6;
            }else if(d==2.1){
                sum+=13.2;
            }
        }else if(d==6&&sum<=25){
            cout<<"游戏经验不足!"<<endl;
            cout<<"1.1 初始地图      1.2 森林地图      1.3海边地图      1.4 空白地图       1.5 农场地图"<<endl;
            cout<<"2.1 大型地图new"<<endl;
            cin>>d;
            if(d==1.1){
                sum+=8.5;
            }else if(d==1.2){
                sum+=10.3;
            }else if(d==1.3){
                sum+=12.5;
            }else if(d==1.4){
                sum+=3.8;
            }else if(d==1.5){
                sum+=9.6;
            }else if(d==2.1){
                sum+=13.2;
            }
        }
        if(d==2.2){
            long long cnt=0,baoshi=7;
            int b1=5,c1=8,a1,b2=6,c2=4,a2;
            while(1){
                srand(time(0));
                a1=rand()%4+1;
                a=getch();
                system("cls");
                if(a1==1){
                    b1++;
                }
                if(a1==2){
                    c1--;
                }
                if(a1==3){
                    c1++;
                }
                if(a1==4){
                    b1--;
                }
                srand(time(0));
                a2=rand()%4+1;
                if(a2==1){
                    b2++;
                }
                if(a2==2){
                    c2--;
                }
                if(a2==3){
                    c2++;
                }
                if(a2==4){
                    b2--;
                }
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                wy(b,c,ss,b1,c1,b2,c2,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==1.1){
            long long cnt=0,baoshi=7;
            int b1=5,c1=8,a1;
            while(1){
                srand(time(0));
                a1=rand()%4+1;
                a=getch();
                system("cls");
                if(a1==1){
                    b1++;
                }
                if(a1==2){
                    c1--;
                }
                if(a1==3){
                    c1++;
                }
                if(a1==4){
                    b1--;
                }
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                ww(b,c,ss,b1,c1,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==1.2){
            long long cnt=0,baoshi=7;
            int b1=2,c1=7,a1;
            while(1){
                srand(time(0));
                a1=rand()%4+1;
                a=getch();
                system("cls");
                if(a1==1){
                    b1++;
                }
                if(a1==2){
                    c1++;
                }
                if(a1==3){
                    b1--;
                }
                if(a1==4){
                    c1--;
                }
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                we(b,c,ss,b1,c1,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==1.3){
            long long cnt=0,baoshi=7;
            while(1){
                a=getch();
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                wr(b,c,ss,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }

        if(d==1.4){
            long long cnt=0,baoshi=7;
            while(1){
                a=getch();
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                w(b,c,ss,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==1.5){
            long long cnt=0,baoshi=7;
            int b1=8,c1=8,a1;
            while(1){
                srand(time(0));
                a1=rand()%4+1;
                if(a1==1){
                    b1++;
                }
                if(a1==2){
                    c1++;
                }
                if(a1==3){
                    b1--;
                }
                if(a1==4){
                    c1--;
                }
                a=getch();
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                wp(b,c,ss,b1,c1,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }
        if(d==2.1){
            long long cnt=0,baoshi=7;
            while(1){
                a=getch();
                system("cls");
                if(ep==1){
                    if(a=='w'){
                        b-=2;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=2;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=2;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=2;
                        cnt++;
                    }
                }else {
                    if(a=='w'){
                        b-=1;
                        cnt++;
                    }
                    if(a=='s'){
                        b+=1;
                        cnt++;
                    }
                    if(a=='d'){
                        c+=1;
                        cnt++;
                    }
                    if(a=='a'){
                        c-=1;
                        cnt++;
                    }
                }
                if(cnt%9==0){
                    baoshi--;
                }
                ws(b,c,ss,baoshi);
                if(a=='b'){
                    break;
                }
            }
        }

    }
}
bool niubi(string nam){
    system("cls");
    cout<<"          牛     逼     浏     览     器            "<<endl;
    cout<<"                  |\     |    "<<endl;
    cout<<"                  | \    |    "<<endl;
    cout<<"               ___|__\___|    "<<endl;
    cout<<"              /   |   \  |\    "<<endl;
    cout<<"              \__|____\_|/    "<<endl;
    cout<<"                  |     \|    "<<endl;
    cout<<nam<<endl;
    cout<<"          A  生活常识"<<endl;
    cout<<"A01 洗发水能喝吗?        A02 我们熬夜会不会影响身高发育?"<<endl;
    cout<<"A03 晒太阳真的能长高吗?  A04 白酒可以代替料酒做菜吗?"<<endl;
    cout<<"A05 我们每天一般刷几次牙?A06 我们每天一般洗几次澡?"<<endl;
    cout<<"          B  百科常识"<<endl;
    cout<<"B01 十二时辰是哪些?      B02 古代人在各个年龄段被称作什么?"<<endl;
    string pp;
    cin>>pp;
    if(pp=="A01"){
        cout<<"不能";
    }
    if(pp=="A02"){
        cout<<"熬夜会不会影响长高";
    }
    if(pp=="A03"){
        cout<<"晒太阳不能直接使人长高";
    }
    if(pp=="A04"){
        cout<<"可以临时代替";
    }
    if(pp=="A05"){
        cout<<"2至3次";
    }
    if(pp=="A06"){
        cout<<"1次";
    }
    if(pp=="B01"){
        cout<<"子丑寅卯辰巳无为申酉戌亥";
    }
    char mnmn=getch();
    return 0;
}
string b;
bool rijiben(){
    system("cls");
    cout<<b<<endl;
    cin>>b;
}
void jinzhi(){
    system("cls");
    int n,a[10005]={0},m=0,i=0,k=0;
    cin>>n>>k;
    m=n;
    while(n){
        i++;
        a[i]=n%k;
        n/=k;
    }
    for(int j=i;j>=1;j--){
        cout<<a[j];
    }
    system("pause");
}
bool dangan(){
    system("cls");
    cout<<"输入名字:";
    string o;
    cin>>o;
    cout<<"输入年龄:";
    string p;
    cin>>p;
    cout<<"输入学历:";
    string q;
    cin>>q;
    cout<<"输入身高:";
    string r;
    cin>>r;
    cout<<"输入体重:";
    string s;
    cin>>s;
    cout<<"输入生肖:";
    string t;
    cin>>t;
    cout<<"输入性格:";
    string u;
    cin>>u;
    cout<<"输入星座:";
    string v;
    cin>>v;
    cout<<o<<"的个人档案"<<endl;
    cout<<setw(18)<<"|名字:"<<o<<setw(18)<<"      年龄:"<<p<<"|"<<endl;
    cout<<setw(18)<<"|学历:"<<q<<setw(18)<<"      身高:"<<r<<"|"<<endl;
    cout<<setw(18)<<"|体重:"<<s<<setw(18)<<"      生肖:"<<t<<"|"<<endl;
    cout<<setw(18)<<"|性格:"<<u<<setw(18)<<"      星座:"<<v<<"|"<<endl;
    char ee;
    ee=getch();
    if(ee=='t'){
        return 0;
    }
}
bool caishu(){
    system("cls");
    int n,a,cnt=0;
    for(int i=1;i<=7;i++){
        cout<<"请输入一个5以内整数:";
        cin>>n;
        srand(time(0));
        a=rand()%5+1;
        if(n==a){
            cout<<"中奖了";
            cnt++;
        }else{
            cout<<"没中奖";
        }
        cout<<",中奖号是:"<<a;
        cout<<endl;
    }
    cout<<"游戏结束,您一共中奖了"<<cnt<<"次"<<endl;
    char aqqaf;
    aqqaf=getch();
}
bool jisuanqi(){
    system("cls");
    cout<<"_________________________________"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|  1   |   2  |    3 |    4 | 5 |"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|______|______|______|______|___|"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|   6  |   7  |    8 |    9 | 0 |"<<endl;
    cout<<"|      |      |      |      |   |"<<endl;
    cout<<"|______|______|______|______|___|"<<endl;
    cout<<"|          |         |          |"<<endl;
    cout<<"|          |         |          |"<<endl;
    cout<<"|    +     |    -    |    ×    |"<<endl;
    cout<<"|          |         |          |"<<endl;
    cout<<"|__________|_________|__________|"<<endl;
    cout<<"|          |                    |"<<endl;
    cout<<"|   ÷     |                    |"<<endl;
    cout<<"|__________|                    |"<<endl;
    cout<<"|                               |"<<endl;
    cout<<"|                               |"<<endl;
    cout<<"|                               |"<<endl;
    string a1,c3;
    char b2;
    int x4=0,y5=0,z6=0;
    int i7=0,j8=0;
    while(1){
        a1[i7]=getch();
        if(!(a1[i7]>='0'&&a1[i7]<='9')){
            break;
        }
        cout<<a1[i7];
        x4=x4*10+a1[i7]-'0';
        i7++;
    }
    b2=getch();
    y5=(int)b2;
    cout<<b2;
    while(1){
        c3[j8]=getch();
        if(!(c3[j8]>='0'&&c3[j8]<='9')){
            break;
        }
        cout<<c3[j8];
        z6=z6*10+c3[j8]-'0';
        j8++;
    }
    if(y5==43){
        cout<<"="<<x4+z6;
    }
    if(y5==45){
        cout<<"="<<x4-z6;
    }
    if(y5==42){
        cout<<"="<<x4*z6;
    }
    if(y5==47){
        cout<<"="<<x4*1.0/z6;
    }
    cout<<endl;
    system("pause");
    return 0;
}
bool xitong(){
    system("cls");
    cout<<"                               隐藏应用\n";
    cout<<"                     01作文生成器    02拟抹输入法"<<endl;
    char a;
    a=getch();
    if(a=='1'){

    }
    if(a=='2'){

    }
    return 0;
}
char a;
char sss;
string word_[6],text_[6];
int cc[6],ccnt,u[7]={65,65,65,65,65,65,65},l[7]={97,97,97,97,97,97,97},k[7]={33,33,33,33,33,33,33};
string nam;
int main(){
    cout<<"                                  "<<endl;
    cout<<"                 /          "<<endl;
    cout<<"                /                "<<endl;
    cout<<"          ████         "<<endl;
    cout<<"       █     /   █      "<<endl;
    cout<<"    █       /      █     "<<endl;
    cout<<"    █      /       █       "<<endl;
    cout<<"    █      \      █         "<<endl;
    cout<<"    █       /      █         "<<endl;
    cout<<"      █    /     █      操作系统"<<endl;
    cout<<"         ████"<<endl;
    cout<<"          /   "<<endl;
    cout<<"         /     "<<endl;
    cout<<"            "<<endl;
    cout<<"             "<<endl;
    for(int i=1;i<=50;i++){
        cout<<"█";
        Sleep(10);
    }
    cout<<"\n请输入用户名:";
    Sleep(1000);
    cin>>nam;
    system("cls");
    cout<<"欢迎";
    Sleep(2000);
    system("cls");
    while(1){
        system("cls");
        cout<<"使用方法:1.数字代表应用名称,输入对应的数字即可打开应用\n";
        cout<<"2.单击空格键,可以新建文档\n";
        system("pause");
        system("cls");
        cout<<"                         ";
        system("time/T");
        cout<<"                         ";
        auto now = chrono::system_clock::now();
        // 转换为time_t类型
        time_t tt = chrono::system_clock::to_time_t(now);
        // 转换为tm结构
        tm *time_tm = localtime(&tt);
        // 格式化输出时间
        cout << 1900 + time_tm->tm_year<< "年 "  << ",";
        cout << 1 + time_tm->tm_mon<< "月 "  << ",";
        cout << time_tm->tm_mday<< "日 "  << endl;
        cout<<"               _________________"<<endl;
        cout<<"               |O键打开隐藏应用|"<<endl;
        cout<<"_______________|_______________|_______________________________"<<endl;
        cout<<"| OS   |s   sX| Hi!_ |姓名:| 45 23|牛逼  |____  | 扫雷 |进制 |"<<endl;
        cout<<"|Office|/ //  | ____ |小明  | 2 ?  |浏览  |7+8-9 |*??*??|3->11|"<<endl;
        cout<<"|      |l+z/ s| ____ |年龄:9|9  56 |器 NB |4*5/6 |???2*?|10->2|"<<endl;
        cout<<"|______|___/__|______|______|______|______|______|______|_____|"<<endl;
        cout<<"   1       2     3       4     5      6      7      8      9"<<endl;
        for(int i=1;i<=ccnt;i++){
            if(cc[i]==1){
                cout<<"_______"<<endl;
                cout<<"|word |"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<(char)u[i]<<endl;
            }else if(cc[i]==2){
                cout<<"_______"<<endl;
                cout<<"|文本 |"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<(char)l[i]<<endl;
            }else if(cc[i]==3){
                cout<<"_______"<<endl;
                cout<<"|文件 |"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<"|_____|"<<endl;
                cout<<(char)k[i]<<endl;
            }
        }
        a=getch();
        if(a=='0'){
            return 0;
        }
        if(a=='1'){
            office(nam);
        }
        if(a=='2'){
            ditu(nam);
        }
        if(a=='3'){
            rijiben();
        }
        if(a=='4'){
            dangan();
        }
        if(a=='5'){
            caishu();
        }
        if(a=='6'){
            niubi(nam);
        }
        if(a=='7'){
            jisuanqi();
        }
        if(a=='8'){
            saolei();
        }
        if(a=='9'){
            jinzhi();
        }
        for(int i=0;i<=ccnt;i++){
            if(a==(char)(u[i])){
                system("cls");
                cout<<"word\n";
                cout<<"________________________________________________________________________\n";

                cout<<"word 2025使用方法:"<<endl;
                cout<<"1.@+S+n表示n个空格  2.@+!表示两次换行  3.?+6表示一个大问号"<<endl;
                cout<<"______________________________________________________________________"<<endl;
                cout<<word_[i];
                char au;

                for(long long j=1;j<=10000000000;j++){
                    au=getch();
                    word_[i]+=au;
                    if(au=='`'){
                        break;
                    }else if(au=='@'){
                        au=getch();
                        if(au=='S'){
                            au=getch();
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                        }
                    }else{
                        cout<<au;
                    }
                    if(au=='@'){
                        au=getch();
                        if(au=='!'){
                            for(int i=1;i<=109;i++){
                                cout<<"2";
                            }
                        }
                    }
                    if(au=='?'){
                        au=getch();
                        if(au=='6'){
                            au=getch();
                            cout<<endl;
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<" ¨€¨€¨€"<<endl;
                            word_[i]+=" ¨€¨€¨€\n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"¨€    ¨€"<<endl;
                            word_[i]+="¨€    ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"     ¨€"<<endl;
                            word_[i]+="     ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"    ¨€"<<endl;
                            word_[i]+="    ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"   ¨€"<<endl;
                            word_[i]+="   ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"   ¨€"<<endl;
                            word_[i]+="   ¨€n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"     "<<endl;
                            word_[i]+=" n";
                            for(int i=1;i<=au-'0';i++){
                                cout<<" ";
                                word_[i]+=" ";
                            }
                            cout<<"   ¨€"<<endl;
                            word_[i]+="   ¨€n";
                        }
                    }
                    if(au=='b'){
                        break;
                    }
                }
            }else if(a==(char)(l[i])){
                system("cls");
                cout<<"文本\n";
                cout<<"____________________________________________\n";
                cout<<text_[i];
                for(int o=1;o<=2000;o++){
                    char o3=getch();
                    cout<<o3;
                    text_[i]+=o3;
                    if(o3=='b'){
                        text_[i].erase(text_[i].size()-1,1);
                        break;
                    }
                }
            }else if(a==(char)(k[i])){
                system("cls");
                cout<<"文件\n";
                cout<<"________________________________________________________________________\n";
                char o3=getch();
                if(o3=='b'){
                    break;
                }
            }
        }
        if(a==' '){
            system("cls");
            cout << 1900 + time_tm->tm_year<< "年 "  << ",";
            cout << 1 + time_tm->tm_mon<< "月 "  << ",";
            cout << time_tm->tm_mday<< "日 "  << endl;
        cout<<"               _________________"<<endl;
        cout<<"               |O键打开隐藏应用|"<<endl;
        cout<<"_______________|_______________|_______________________________"<<endl;
        cout<<"| OS   |s   sX| Hi!_ |姓名:| 45 23|牛逼  |____  | 扫雷 |进制 |"<<endl;
        cout<<"|Office|/ //  | ____ |小明  | 2 ?  |浏览  |7+8-9 |*??*??|3->11|"<<endl;
        cout<<"|      |l+z/ s| ____ |年龄:9|9  56 |器 NB |4*5/6 |???2*?|10->2|"<<endl;
        cout<<"|______|___/__|______|______|______|______|______|______|_____|"<<endl;
        cout<<"   1       2     3       4     5      6      7      8      9"<<endl;
            cout<<""<<endl;
            cout<<"...        ..."<<endl;
            cout<<"..__________.."<<endl;
            cout<<"  |新建:  |                         "<<endl;
            cout<<"  |________|     "<<endl;
            cout<<"  |1.word  |            "<<endl;
            cout<<"  |2.记事本|        "<<endl;
            cout<<"  |3.文件夹|   "<<endl;
            cout<<"  |________|  "<<endl;
            cout<<"             "<<endl;
            cin>>sss;
            if(sss=='1'){
                cc[++ccnt]=1;
                u[ccnt]=u[ccnt-1]+1;
            }else if(sss=='2'){
                cc[++ccnt]=2;
                l[ccnt]=l[ccnt-1]+1;
            }else if(sss=='3'){
                cc[++ccnt]=3;
                k[ccnt]=k[ccnt-1]+1;
            }
        }
        if(a=='O'||a=='o'){
            xitong();
        }
    }
    return 0;
}
 

我要回答