include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
int xinshou_flag,didiqiusheng_flag;//判断是否过关的数组
int jinggao_cundang_exe;
bool denglu_flag;
void denglu_exe(int zhh_size){
if(denglu_flag) return;
string denglu_zhh,zhh[1]={“luhyadmin”},mi,mi_cin,mima[1]={“0309luhy”};bool zhh_flag=true;
cout<<”账号:”;
cin>>denglu_zhh;
for(int i=0;i[HTML_REMOVED]>mi_cin;
if(mi_cin==mi){
cout<<”登录成功”<[HTML_REMOVED] &_vector) {
FILE fp = fopen(filename.c_str(), “r”);
bool flag = true;
int i = 0;
if (!fp) {
return 0;
}
while (flag) {
double rowArray = new double[cols]; //new一个double类型的动态数组
for (i = 0; i < cols; i++) { //读取数据,存在_vector[cols]中
if (EOF == fscanf(fp,"%lf", &rowArray[i])) {
flag = false;
break;
}
//输出rowArray存入的数据
//cout << rowArray[0] << " " << rowArray[1] << " " << rowArray[2] << " " << rowArray[3] << endl;
}
if (cols == i) //将txt文本文件中的一行数据存入rowArray中,并将rowArray存入vector中
_vector.push_back(rowArray);
}
fclose(fp);
return 1;
}
void x(const string c) {
size_t len = c.size();
for(int i = 0; i < c.size(); i) {
cout << c[i];
usleep(30000);
}
}
void color(int a) { //颜色函数
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
}
int ynh,xl=100,gt,xh,n,flags1,sycs=3,shumui1,flag,shengliflag;
char h,shumuc1,xinshoumap[10][16]= {‘#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’a’,’A’,’ ‘,’B’,’ ‘,’C’,’ ‘,’D’,’ ‘,’E’,’ ‘,’F’,’ ‘,’G’,’#’,’#’,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’#’,’#’,’b’,’H’,’ ‘,’I’,’ ‘,’J’,’ ‘,’K’,’ ‘,’L’,’ ‘,’M’,’ ‘,’N’,’#’,’#’,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’#’,’#’,’c’,’O’,’ ‘,’P’,’ ‘,’Q’,’ ‘,’R’,’ ‘,’S’,’ ‘,’T’,’ ‘,’U’,’#’,’#’,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’#’,’#’,’d’,’V’,’ ‘,’W’,’ ‘,’X’,’ ‘,’Y’,’ ‘,’Z’,’ ‘,’ ‘,’ ‘,’ ‘,’#’,’#’,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’ ‘,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,’#’,};
struct dj {
string name;
bool dgflag;
} dg[1000];
void didiqiusheng_exe() {
jinggao_cundang_exe=1;
system(“cls”);
}
void mapxinshou(int xx,int yy) {
if(sycs==0) {
system(“cls”);
x(“任务失败,请重新挑战!”);
sleep(1);
system(“cls”);
for(int i=1; i<=10; i) {
color(7);
cout<<”玩家复活中……”<[HTML_REMOVED]=’a’) color(10);
else color(14);
cout<[HTML_REMOVED]>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’B’) {
cout<<”按1进入书架B\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《海底两万里》\n2.《福尔摩斯探案集》\n3.《游戏加载中》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’C’) {
cout<<”按1进入书架C\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《我爱种田》\n2.《破云》\n3.《幻城》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’D’) {
cout<<”按1进入书架D\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《悲伤逆流成河》\n2.《鹿鼎记》\n3.《鲁宾逊漂流记》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’E’) {
cout<<”按1进入书架E\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《玛雅文明消失的秘密》\n2.《狼外婆》\n3.《怪物山谷的小红帽》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
if(shumui1==1) {
x(“选择正确,恭喜你成功通关新手副本,成功获得异能,可在大厅查看。”);
cout<[HTML_REMOVED]>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’G’) {
cout<<”按1进入书架G\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《书剑恩仇录》\n2.《天云》\n3.《骑士街九号》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’H’) {
cout<<”按1进入书架H\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《末日堡垒》\n2.《白说》\n3.《侦探伽利略》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’I’) {
cout<<”按1进入书架I\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《成语故事》\n2.《爆笑校园》\n3.《环球少儿地理》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’J’) {
cout<<”按1进入书架J\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《探索与发现》\n2.《科学家的故事》\n3.《环月飞行》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’K’) {
cout<<”按1进入书架K\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《上海堡垒》\n2.《地球大炮》\n3.《流浪地球》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’L’) {
cout<<”按1进入书架L\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《飞出太阳系》\n2.《火花》\n3.《清明上河图密码》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’M’) {
cout<<”按1进入书架M\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《神奇校车》\n2.《杀死一只知更鸟》\n3.《知更鸟女孩》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’N’) {
cout<<”按1进入书架N\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《摆渡人》\n2.《论语》\n3.《孟子》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’O’) {
cout<<”按1进入书架O\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《老子》\n2.《庄子》\n3.《傅雷家书》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’P’) {
cout<<”按1进入书架P\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《围城》\n2.《湘行散记》\n3.《边城》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’Q’) {
cout<<”按1进入书架Q\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《聊斋志异》\n2.《茶馆》\n3.《哈利波特》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’R’) {
cout<<”按1进入书架R\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《平凡的世界》\n2.《活着》\n3.《复活》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’S’) {
cout<<”按1进入书架S\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《西游记》\n2.《水浒传》\n3.《猫和老鼠》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’T’) {
cout<<”按1进入书架T\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《三国志》\n2.《全球通史》\n3.《全球高考》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’U’) {
cout<<”按1进入书架U\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《明朝那些事》\n2.《老人与海》\n3.《百年孤独》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’V’) {
cout<<”按1进入书架V\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《偷影子的人》\n2.《林肯传》\n3.《居里夫人》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’W’) {
cout<<”按1进入书架W\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《简爱》\n2.《悲惨世界》\n3.《堂·吉诃德》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’X’) {
cout<<”按1进入书架X\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《世界经典短篇小说》\n2.《安妮日记》\n3.《欧也妮与葛朗台》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’Y’) {
cout<<”按1进入书架Y\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《万历十五年》\n2.《史书》\n3.《汉书》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
if(h==’Z’) {
cout<<”按1进入书架Z\n”;
shumuc1=getch();
if(shumuc1-‘0’==1) {
cout<<”1.《十宗罪》\n2.《史记》\n3.《演讲与口才》\n请选择:”;
cin>>shumui1;
while(shumui1!=1&&shumui1!=2&&shumui1!=3) {
x(“输入有误,请重新输入。”);
cout<[HTML_REMOVED]>shumui1;
}
x(“选择错误,加油,继续寻找!”);
sycs–;
sleep(1);
system(“cls”);
mapxinshou(xx,yy);
}
}
}
void xinshou() {
int mapxs1,xx=1,yy=1,kz1,kz2;
sycs=3;
system(“cls”);
color(9);
x(““叮咚!2017年11月15日,地球上线了。””);
cout<[HTML_REMOVED] output_vector;
int rows=output_vector.size();
if (!read_scanf(file, columns, output_vector)||rows==1) {
gt=1;
for(int i=1; i<=10; i) {
color(7);
cout<<”地球上线安装包 “<<endl;
color(10);
for(int k=1; k<=i; k) {
cout<<”■”;
}
for(int j=i+1; j<=10; j) {
cout<<”─”;
}
sleep(1);
system(“cls”);
}
for(int i=1; i<=10; i) {
color(7);
cout<<”正在解压…… “<<endl;
color(10);
for(int k=1; k<=i; k) {
cout<<”■”;
}
for(int j=i+1; j<=10; j) {
cout<<”─”;
}
sleep(1);
system(“cls”);
}
color(7);
x(“《地球上线》”);
cout<<endl;
sleep(1);
x(“作者:莫成欢”);
cout<<endl;
sleep(1);
x(“编写者:猛牛a”);
cout<<endl;
sleep(1);
x(“技术顾问:猛牛b”);
cout<<endl;
sleep(1);
x(“版本:v1.2”);
cout<<endl;
sleep(1);
system(“cls”);
color(12);
x(” #### “);
cout<<endl;
x(” # # “);
cout<<endl;
x(” # # # “);
cout<<endl;
x(“# # #”);
cout<<endl;
x(“# ###### #”);
cout<<endl;
x(“# # #”);
cout<<endl;
x(” # # # “);
cout<<endl;
x(” # # “);
cout<<endl;
x(” #### “);
cout<<endl;
x(“猛牛工作室”);
cout<<endl;
x(” 出 品 “);
cout<<endl;
color(7);
sleep(1);
xinshou();
ofstream cd(“地球上线存档.txt”);
} else {
color(7);
gt=1;//之后改掉
//读档
xinshou_flag=output_vector[1][0];
denglu_exe(1);
x(“《地球上线》”);
cout<<endl;
sleep(1);
x(“作者:莫成欢”);
cout<<endl;
sleep(1);
x(“编写者:猛牛a”);
cout<<endl;
sleep(1);
x(“技术顾问:猛牛b”);
cout<<endl;
sleep(1);
x(“版本:v1.2”);
cout<<endl;
sleep(1);
system(“cls”);
color(12);
x(” #### “);
cout<<endl;
x(” # # “);
cout<<endl;
x(” # # # “);
cout<<endl;
x(“# # #”);
cout<<endl;
x(“# ###### #”);
cout<<endl;
x(“# # #”);
cout<<endl;
x(” # # # “);
cout<<endl;
x(” # # “);
cout<<endl;
x(” #### “);
cout<<endl;
x(“猛牛工作室”);
cout<<endl;
x(” 出 品 “);
cout<<endl;
color(7);
sleep(1);
}
//output_vector可视为二维数组;输出数组元素:
/for(int i=0;i<rows;i){
for(int j=0;j<columns;j){
cout<<output_vector[i][j]<< ” “;
}
cout<<endl;
}/
shengliflag=0;
dt();
while(1) {
xh=getch();
if(xh-48==1) sfub();
if(xh-48==2) fb();
if(xh-48==3) gtgt();
if(xh-48==4) yineng();
if(xh-48==5) daoju();
if(xh-48==6) {
if(jinggao_cundang_exe==0) {
system(“cls”);
x(“您当前还未获取道具火鸡蛋陌陌,无法存档,请点击副本,完成“2.地底求生”,即可解锁存档功能。”);
sleep(1);
system(“cls”);
dt();
continue;
}
cundang();
system(“cls”);
int guanbi_int=guanbi_exe();
if(guanbi_int==0) return 0;
if(guanbi_int==1) dt();
}
if(xh-48!=1&&xh-48!=2&&xh-48!=3&&xh-48!=4) dt();
cundang();
}
}
太好了