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,srcnt;
char ch;
string wz[105][10005];
void js(){
system("cls");
MessageBox(NULL,"未更新","籍章提示",MB_OKCANCEL);
cout<<"Error!!!"<<endl;
cout<<"出错啦!!!3秒后退出应用。";
sleep(3);
system("cls");
return;
}
void cd(){
cout<<"______________________________________"<<endl;
cout<<"| 籍章(3.0版本) |"<<endl;
cout<<"| |"<<endl;
cout<<"| 公告 |"<<endl;
cout<<"| 目前基础操作正在完善 |"<<endl;
cout<<"| 按下1查看简介、功能 |"<<endl;
cout<<"| 按下2开始编辑文本 |"<<endl;
cout<<"| |"<<endl;
cout<<"| |"<<endl;
cout<<"| |"<<endl;
cout<<"| |"<<endl;
cout<<"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"<<endl;
}
void sr(){
srcnt=0;
cout<<"请输入文本,换行输入js0结束"<<endl;
while(true){
srcnt++;
getline(cin,wz[wzcnt][srcnt]);
if(wz[wzcnt][srcnt]=="js0"){
cout<<"已结束"<<endl;
system("cls");
break;
}
wzcnt++;
}
}
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");
}
while(true){
cd();
ch=getch();
if(ch=='1'){
system("cls");
cout<<" ——籍 章—— "<<endl;
cout<<" 开发者:郑皓予 "<<endl;
cout<<" 这是一个普通的写作工具 "<<endl;
cout<<" 它于2025年7月3日开始开发"<<endl;
cout<<" 目前已是3.0版本 "<<endl;
cout<<" 按Z键继续 "<<endl;
ch=getch();
if(ch='z'){
system("cls");
cd();
ch=getch();
if(ch=='2'){
system("cls");
cout<<"新建文章按Z键"<<",其他键退出"<<endl;
ch=getch();
if(ch=='z'){
if(wzcnt<101){
if(ch=='z'){
system("cls");
wzcnt++;
sr();
}
}
else{
cout<<"文章数已到达上限!!!";
}
}
}
}
}
if(ch=='2'){
system("cls");
cout<<"新建文章按Z键"<<",其他键退出"<<endl;
ch=getch();
if(wzcnt<101){
if(ch=='z'){
system("cls");
wzcnt++;
sr();
}
}
else{
cout<<"文章数已到达上限!!!";
system("cls");
}
}
else{
continue;
}
system("cls");
}
return 0;
}
若有建议,请提出。