问题标题: 籍章 2.0

0
0
已解决
郑皓予
郑皓予
新手光能
新手光能


#include<iostream>

#include<bits/stdc++.h>

#include<unistd.h>

#include<windows.h>

#include<conio.h>

#include<tlhelp32.h>

using namespace std;

long long wzcnt=0;

void js(){
    system("cls");

    MessageBox(NULL,"未更新","软件提示",MB_OKCANCEL);

    cout<<"Error!!!"<<endl;

    cout<<"出错啦!!!3秒后退出应用。";

    sleep(3);

    system("cls");
    return;
}

int main(){

    MessageBox(NULL,"目前系统为未完成版本","软件提示",MB_OKCANCEL);

    system("pause");

    system("cls");

    cout<<"Start loading within ten seconds";

    sleep(3);

    system("cls");

    for(int i=1;i<=2;i++){

        cout<<"正在启动软件.";

        sleep(1);

        system("cls");

        cout<<"正在启动软件..";

        sleep(1);

        system("cls");

        cout<<"正在启动软件...";

        sleep(1);

        system("cls");

        cout<<"正在启动软件....";

        sleep(1);

        system("cls");

    }
    cout<<"______________________________________"<<endl;

    cout<<"|            籍章(1.0版本)           |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                公告                |"<<endl;

    cout<<"|         目前基础操作正在完善       |"<<endl;

    cout<<"|         按下1查看简介、功能        |"<<endl;

    cout<<"|         按下2开始编辑文本          |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"<<endl;

    char ch=getch();

    if(ch=='1'){

        system("cls");

        cout<<"     ——籍 章——       "<<endl;

        cout<<"     开发者:郑皓予      "<<endl;

        cout<<"  这是一个普通的写作工具 "<<endl;

        cout<<" 它于2025年7月3日开始开发"<<endl;

        cout<<"        按Z键继续        "<<endl;

        if(ch='z'){

            system("cls");

            js();

        }

    }

    if(ch=='2'){

        system("cls");

        cout<<"新建文章按Z键";

        ch=getch();

        if(ch=='z'){

           wzcnt++;

           js();

        }

    }

    return 0;

}

 

 

增加了菜单选项,若有建议,请提出。

郑皓予在2025-07-04 16:32:16追加了内容

#include<iostream>

#include<bits/stdc++.h>

#include<unistd.h>

#include<windows.h>

#include<conio.h>

#include<tlhelp32.h>

using namespace std;

long long wzcnt=0;

void js(){
    system("cls");

    MessageBox(NULL,"未更新","软件提示",MB_OKCANCEL);

    cout<<"Error!!!"<<endl;

    cout<<"出错啦!!!3秒后退出应用。";

    sleep(3);

    system("cls");
    return;
}

int main(){

    MessageBox(NULL,"目前系统为未完成版本","软件提示",MB_OKCANCEL);

    system("pause");

    system("cls");

    cout<<"Start loading within ten seconds";

    sleep(3);

    system("cls");

    for(int i=1;i<=2;i++){

        cout<<"正在启动软件.";

        sleep(1);

        system("cls");

        cout<<"正在启动软件..";

        sleep(1);

        system("cls");

        cout<<"正在启动软件...";

        sleep(1);

        system("cls");

        cout<<"正在启动软件....";

        sleep(1);

        system("cls");

    }
    cout<<"______________________________________"<<endl;

    cout<<"|            籍章(1.0版本)           |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                公告                |"<<endl;

    cout<<"|         目前基础操作正在完善       |"<<endl;

    cout<<"|         按下1查看简介、功能        |"<<endl;

    cout<<"|         按下2开始编辑文本          |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"<<endl;

    char ch=getch();

    if(ch=='1'){

        system("cls");

        cout<<"     ——籍 章——       "<<endl;

        cout<<"     开发者:郑皓予      "<<endl;

        cout<<"  这是一个普通的写作工具 "<<endl;

        cout<<" 它于2025年7月3日开始开发"<<endl;

        cout<<"        按Z键继续        "<<endl;

        if(ch='z'){

            system("cls");

            js();

        }

    }

    if(ch=='2'){

        system("cls");

        cout<<"新建文章按Z键";

        ch=getch();

        if(ch=='z'){

           wzcnt++;

           js();

        }

    }

    return 0;

}

 

更新内容增加了菜单选项。

如有意见,请提出。

郑皓予在2025-07-04 19:07:37追加了内容

ding

郑皓予在2025-07-04 22:14:26追加了内容

#include<iostream>

#include<bits/stdc++.h>

#include<unistd.h>

#include<windows.h>

#include<conio.h>

#include<tlhelp32.h>

using namespace std;

long long wzcnt=0;

char ch;

string s="";

void js(){

    system("cls");

    MessageBox(NULL,"未更新","籍章提示",MB_OKCANCEL);

    cout<<"Error!!!"<<endl;

    cout<<"出错啦!!!3秒后退出应用。";

    sleep(3);

    system("cls");

    return;
}


void cd(){

    cout<<"______________________________________"<<endl;

    cout<<"|            籍章(2.1版本)           |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                公告                |"<<endl;

    cout<<"|         目前基础操作正在完善       |"<<endl;

    cout<<"|         按下1查看简介、功能        |"<<endl;

    cout<<"|         按下2开始编辑文本          |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"<<endl;

}

void cd2(){

    cout<<"______________________________________"<<endl;

    cout<<"|            籍章(1.0版本)           |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                公告                |"<<endl;

    cout<<"|         目前基础操作正在完善       |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|         按下2开始编辑文本          |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"|                                    |"<<endl;

    cout<<"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"<<endl;

}

int main(){

    MessageBox(NULL,"目前系统为未完成版本","籍章提示",MB_OKCANCEL);

    system("pause");

    system("cls");

    cout<<"二秒后启动,启动时不要乱按键盘";

    sleep(2);

    system("cls");

    for(int i=1;i<=2;i++){

        cout<<"正在启动软件.";

        sleep(1);

        system("cls");

        cout<<"正在启动软件..";

        sleep(1);

        system("cls");

        cout<<"正在启动软件...";

        sleep(1);

        system("cls");

        cout<<"正在启动软件....";

        sleep(1);

        system("cls");

    }

    cd();

    ch=getch();

    if(ch=='1'){

        system("cls");

        cout<<"     ——籍 章——       "<<endl;

        cout<<"     开发者:郑皓予      "<<endl;

        cout<<"  这是一个普通的写作工具 "<<endl;

        cout<<" 它于2025年7月3日开始开发"<<endl;

        cout<<"        按Z键继续        "<<endl;

        ch=getch();

        if(ch='z'){

            system("cls");

            cd2();

            ch=getch();

            if(ch=='2'){

                system("cls");

                cout<<"新建文章按Z键";

                ch=getch();

                if(ch=='z'){

                    wzcnt++;

                    js();

                }

            }

        }

    }

    if(ch=='2'){

        system("cls");
        
        if(wzcnt==0){
                
            cout<<"新建文章按Z键";
        
        }
        
        ch=getch();

        if(ch=='z'){

           wzcnt++;

        }

    }

    return 0;

}

更新内容:优化代码


0
已采纳
骆芃瑀
骆芃瑀
资深守护
资深守护

快升级了,快让我氵一下

我要回答