-
个人简介
进来康康
https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4
你是第号顾客
神奇的评测结果
AC:啊这题目终于过了啊!
WA:没逝,改亿下就……也不行
TLE:这tm到底是什么个思路啊?!
MLE:……算了
CE:你知道为什么变量会重名吗,我不到哇
RE:一定是我数组不够大,再逝亿次……
PC:我怎么知道是那个地方错了!
UKE:我真的谢谢你
OLE:没复制正确是不存在的好吧
WA=Wonderful Answer=好答案
TLE=Time Limit Enough=时间充裕
MLE=Memory Limit Enough=内存充裕
CE=Compile Easily=轻松通过编译
RE=Run Excellently=完美运行
UKE=Unbelievably Keep Enough Score=难以置信地保持足够的分数
AC=All UnAccepted=全都不正确
———————————————————
暴力出奇迹,骗分过样例。
数学先打表,DP看运气。
穷举TLE,递推UKE。
模拟MLE,贪心还CE。
想要骗到分,就要有方法。
图论背模板,数论背公式。
动规背方程,高精背代码。
如果都没背,干脆输样例。
__ __ __ / / / /_ ______/ /________ / /_/ / / / / __ / ___/ __ \ / __ / /_/ / /_/ / / / /_/ / /_/ /_/\__, /\__,_/_/ \____/ /____/
/\__ _\ /\ _ \/\ \/\ \ /\__ _\ /\ __ \/\__ _\ \/_/\ \/ \ \ \ \ \ \ \/ / \/_/\ \/ \ \ \/\ \/_/\ \/ \ \ \ \ \ __ \ \ < \ \ \ \ \ \ \ \ \ \ \ \_\ \__ \ \ \/\ \ \ \\ \ \_\ \__\ \ \_\ \ \_\ \__ /\_____\ \ \_\ \_\ \_\ \_\ /\_____\\ \_____\/\_____\ \/_____/ \/_/\/_/\/_/\/_/ \/_____/ \/_____/\/_____/
▃▆█▇▄▖ ▟◤▖ ◥█▎ ◢◤ ▐ ▐▉ ▗◤ ▂ ▗▖ ▕█▎ ◤ ▗▅▖◥▄ ▀◣ █▊ ▐ ▕▎◥▖◣◤ ◢██ █◣ ◥▅█▀ ▐██◤ ▐█▙▂ ◢██◤ ◥██◣ ◢▄◤ ▀██▅▇▀
附赠小游戏1:
#include<bits/stdc++.h> #include<windows.h> #include<stdio.h> #include<conio.h> #include<time.h> using namespace std; int m[10001][21]={ {-1,0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {-1,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {-1,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {-1,19,0,0,0,0,0,1,1,1,0,0,12,0,0,0,0,0,0,0,0}, {-1,13,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0}, {-1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,4,0,0,0,0}, {-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {-1,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1}, {-1,0,0,0,2,2,0,0,3,3,0,0,6,6,0,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0}, {-1,15,0,0,0,0,0,0,0,0,0,0,0,0,20,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0,0,0,0,0,0,16,17,0,0,0,0,0,0}, {-1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1}, {-1,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {-1,0,0,0,1,1,0,0,2,2,0,0,0,1,1,1,0,0,0,0,0}, }; int X,Y,dx,dy,tX,zX,zY,Sstar,Sboom,Win; int Ee,Fen,RR,Slep,K,S,Er,Ice,Fang,Can; int Ta,Zha,Bai,Yin,Su,U,TT,Ty,sy; void Color(int a) { a+=Bai*20; if(a==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE); if(a==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE); if(a==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN); if(a==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE); if(a==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED); if(a==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN); if(a==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE); if(a==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE); if(a==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_GREEN|BACKGROUND_BLUE|FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE); if(a%20==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_RED|FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN); if(a==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED); else if(a>20) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE); } void SetPos(int x,int y) { COORD pos; pos.X=y*2-1,pos.Y=26-x; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos); } void Star(); void Wo(int x) { SetPos(X-K,Y),cout<<" "; //清除上一次残影 if(Can!=0) {SetPos(X-K,Y),Color(10),cout<<"●";int R=rand()%5;if(R==0&&Y<20) Y++;if(R==1&&Y>1) Y--;}//兴奋 if((m[X][Y]==1||m[X][Y]==7)&&Ta==0) X++; //跳上白块 if(X<=0) X=dx,Y=dy; //复活 if(X-K>23) tX=0,X=K+23; //高度上限 if(tX!=0&&Ta==0) tX--,X+=2; //上跳 if(Ta!=0) {tX=0;if(m[X-1][Y]==0||m[X-1][Y]==4||m[X-1][Y]==5||(m[X-1][Y]>=9&&m[X-1][Y]<=18)) m[X-1][Y]=7;} //云鞋走路 if(m[X][Y]==6) X--; //隐形块 if(m[X+1][Y]==6){tX=0;m[X+1][Y]=7;if(m[X+1][Y-1]==6) m[X+1][Y-1]=7;if(m[X+1][Y+1]==6) m[X+1][Y+1]=7;Fen+=2;} //隐形块 if(m[X-1][Y]==6){tX=0;m[X-1][Y]=7;if(m[X-1][Y-1]==6) m[X-1][Y-1]=7;if(m[X-1][Y+1]==6) m[X+1][Y+1]=7;Fen+=2;} //隐形块 if(m[X][Y+1]==6){tX=0;m[X][Y+1]=m[X][Y+2]=7;Fen+=2;} if(m[X][Y-1]==6){tX=0;m[X][Y-1]=m[X][Y-2]=7;Fen+=2;} //隐形块 if(m[X-1][Y]==0||m[X-1][Y]==4||m[X-1][Y]==5||(m[X-1][Y]>=9&&m[X-1][Y]<=20)) {X--;} //掉落 if(m[X][Y]==4) Fen+=5,m[X][Y]=5,dx=X,dy=Y; //复活点 if(m[X][Y]==16) m[X][Y]=0,Sstar++,Star(),SetPos(X-K,Y),cout<<" ";if(m[X+1][Y]==16) m[X+1][Y]=0,Sstar++,Star(),SetPos(X-K+1,Y),cout<<" "; //星星 if(m[X-1][Y]==1||m[X-1][Y]==2||m[X-1][Y]==3||m[X-1][Y]==7) tX=Er=0; //跳跃次数清零 if(m[X-1][Y]==2||m[X][Y]==2||Ta!=0) tX+=5; //弹跳块 if(m[X-1][Y]==10) m[X-1][Y]=3,Sboom++;if(m[X][Y]==10) m[X][Y]=3,X++,Sboom++; //隐形炸弹块 if(m[X-1][Y]==3||m[X][Y]==3) //炸弹块 { if(Zha==0) { Zha++; SetPos(X+1-K,Y-1),Color(5),cout<<"■";SetPos(X+1-K,Y+1),Color(5),cout<<"■";SetPos(X+1-K,Y),Color(5),cout<<"■";SetPos(X-1-K,Y-1),Color(5),cout<<"■"; SetPos(X-1-K,Y+1),Color(5),cout<<"■";SetPos(X-1-K,Y),Color(5),cout<<"■";SetPos(X-K,Y-1),Color(5),cout<<"■";SetPos(X-K,Y+1),Color(5),cout<<"■"; SetPos(X-K,Y),Color(5),cout<<"■";Sleep(300);SetPos(X+1-K,Y-1),Color(5),cout<<" "; SetPos(X+1-K,Y+1),Color(5),cout<<" ";SetPos(X+1-K,Y),Color(5),cout<<" ";SetPos(X-1-K,Y-1),Color(5),cout<<" ";SetPos(X-1-K,Y+1),Color(5),cout<<" "; SetPos(X-1-K,Y),Color(5),cout<<" ";SetPos(X-K,Y-1),Color(5),cout<<" ";SetPos(X-K,Y+1),Color(5),cout<<" ";SetPos(X-K,Y),Color(5),cout<<" "; //动画 }if(m[X][Y]==3) X++; if(Fang==0) X=dx,Y=dy,Fen-=5; //复活 }else Zha=0; if(x==3) {int U=rand()%10;SetPos(X-K,Y);if(U==0) Color(6),cout<<"●";} //隐身 else if(Fang!=0) SetPos(X-K,Y),Color(2),cout<<"●"; //爆衣 else if(Can!=0) SetPos(X-K,Y),Color(4),cout<<"●"; //兴奋 else if(x==2) SetPos(X-K,Y),Color(5),cout<<"●"; //云鞋 else if(x==1) SetPos(X-K,Y),Color(1),cout<<"●"; //普通 } void Cout(int i,int j,int a) { if(m[i][j]==1) SetPos(i-K,j),Color(0),cout<<"■"; if(m[i][j]==2) SetPos(i-K,j),Color(5),cout<<"■"; if(m[i][j]==3) SetPos(i-K,j),Color(4),cout<<"■"; if(m[i][j]==4) SetPos(i-K,j),Color(3),cout<<"▋"; if(m[i][j]==5&&(i!=X||j!=Y)) SetPos(i-K,j),Color(2),cout<<"▋"; if(m[i][j]==6&&a==1) SetPos(i-K,j),Color(7),cout<<"■",m[i][j]=7,Fen++; if(m[i][j]==7&&a==4) SetPos(i-K,j),cout<<" ",m[i][j]=0; if(m[i][j]==7&&a!=4) SetPos(i-K,j),Color(7),cout<<"■"; // if(m[i][j]==8) SetPos(i-K,j),cout<<" "; if(m[i][j]==9) SetPos(i-K,j),Color(0),cout<<"←→左右移动"; if(m[i][j]==11&&Ee==0) SetPos(i-K,j),Color(0),cout<<"弹跳块 炸弹块 隐形块"; if(m[i][j]==11&&Ee==1) SetPos(i-K,j),Color(0),cout<<"弹跳块 ",Color(4),cout<<"隐形炸弹块",Color(0),cout<<" 隐形块"; if(m[i][j]==12&&Ee==0) SetPos(i-K,j),Color(0),cout<<" 激活复活点"; if(m[i][j]==12&&Ee==1) SetPos(i-K,j),Color(0),cout<<"出复活点",Color(3),cout<<"几率已增加"; if(m[i][j]==13) SetPos(i-K,j),Color(0),cout<<"按↑跳跃,可二段跳"; if(m[i][j]==14) SetPos(i-K,j),Color(0),cout<<"从现在开始随机出图啦"; if(m[i][j]==15&&Ee==0) SetPos(i-K,j),Color(5),cout<<"1000分通关!",Color(0),cout<<"空格暂停"; if(m[i][j]==15&&Ee==1) SetPos(i-K,j),Color(5),cout<<"探到40个通关!",Color(0),cout<<"空格暂停"; if(m[i][j]==15&&Ee==2) SetPos(i-K,j),Color(5),cout<<"捉到20个通关!",Color(0),cout<<"空格暂停"; if(m[i][j]==16) SetPos(i-K,j),Color(5),cout<<"★"; if(m[i][j]==17&&Ee==0) SetPos(i-K,j),Color(0),cout<<"里有神秘物品!"; if(m[i][j]==17&&Ee==1) SetPos(i-K,j),Color(0),cout<<"里有",Color(2),cout<<"防爆护罩!",Color(0); if(m[i][j]==17&&Ee==2) SetPos(i-K,j),Color(2),cout<<"它会动啦!",Color(0); if(m[i][j]==18) SetPos(i-K,j),Color(0),cout<<"不要让你的角色掉到视线以下!"; if(m[i][j]==19) SetPos(i-K,j),Color(0),cout<<"按↓下降"; if(m[i][j]==20&&Ee==2) SetPos(i-K,j),Color(3),cout<<"出现几率已增加",Color(0); //这里若加字的话,需在前面改 (m[X-1][Y]>=9&&m[X-1][Y]<=20) 一下 Color(0); } void Map(int x1,int x2,int a) { SetPos(25,2);if(Bai!=0||Yin!=0||Can!=0) Color(9);else Color(1); if(Ee==0) cout<<"分数:"<<Fen<<" ",Color(0);if(Ee==1) cout<<"已探测:"<<Sboom<<" ",Color(0);if(Ee==2) cout<<"已收集:"<<Sstar<<" ",Color(0); SetPos(24,2);if(Ice!=0) Color(8);else Color(1);cout<<"速度:"<<Slep<<" ",Color(0); bool Yan=0; for(register int i=x1;i>=x2;i--) for(register int j=1;j<=20;j++) Cout(i,j,a); if(Yin!=0) Wo(3); else if(Ta!=0) Wo(2); else if(a==0) Wo(1); else if(a==2) SetPos(X-K,Y),Color(1),cout<<"▲"; } void MoveStar(int x1,int x2) { int n[30][21];memset(n,0,sizeof(n)); for(register int i=x1;i>=x2;i--) for(register int j=1;j<=20;j++) { if(m[i][j]==16&&n[i-K][j]==0) { int kl=rand()%4; if(kl==0&&i-K<22&&m[i+1][j]==0) m[i][j]=0,m[i+1][j]=16,n[i+1-K][j]=1,SetPos(i-K,j),cout<<" ",SetPos(i+1-K,j),cout<<"★"; if(kl==1&&i-1>K&&m[i-1][j]==0) m[i][j]=0,m[i-1][j]=16,n[i-1-K][j]=1,SetPos(i-K,j),cout<<" ",SetPos(i-1-K,j),cout<<"★"; if(kl==2&&j+1<20&&m[i][j+1]==0) m[i][j]=0,m[i][j+1]=16,n[i-K][j+1]=1,SetPos(i-K,j),cout<<" ",SetPos(i-K,j+1),cout<<"★"; if(kl==3&&j-1>1&&m[i][j-1]==0) m[i][j]=0,m[i][j-1]=16,n[i-K][j-1]=1,SetPos(i-K,j),cout<<" ",SetPos(i-K,j-1),cout<<"★"; } } } void Sheng() { RR++; if(K<-8) RR=5; if(K==-8) RR=0; if(RR==3) {int r=rand()%2;if(r==0) RR=0;} if(RR==4) RR=0; if(RR==0) { Ax: int Bx=0; for(int i=1;i<=20;i++) m[K+22][0]=0; for(int i=1;i<=20;i++) { int R=rand()%50; if(R<=10) {int S=rand()%3+1; for(int j=i;j<=i+S;j++) if(j<=20) m[K+22][j]=1;i+=S+1;Bx=1;continue;} if(R>10&&R<=12) {for(int j=i;j<=i+1;j++) if(j<=20) m[K+22][j]=2; i+=2;Bx=1;continue;} if(R>12&&R<=14) {for(int j=i;j<=i+1;j++) if(j<=20) m[K+22][j]=3; i+=2;continue;} if(R>14&&R<=16) {for(int j=i;j<=i+1;j++) if(j<=20) m[K+22][j]=6; i+=2;continue;} if(R==17) {m[K+22][i]=m[K+22][i+1]=m[K+22][i+2]=1; m[K+23][i+1]=4; i+=2;continue;} if(R>17&&R<=20&&Ee==1) {m[K+22][i]=m[K+22][i+1]=m[K+22][i+2]=1; m[K+23][i+1]=4; i+=2;continue;} if(R>20&&R<=30&&Ee==1) m[K+22][i]=10; i++; }if(Bx==0) goto Ax; } int Q=rand()%30; if(Q==0) {int QQ=rand()%20+1; if(m[K+22][QQ]==0) m[K+22][QQ]=16;} else if(Q<=2&&Ee==2) {int QQ=rand()%20+1; if(m[K+22][QQ]==0) m[K+22][QQ]=16;} } void Star() { int W=rand()%10;if(K<20) W=rand()%7;if(Ee==1) W=3; if(W==0) {Color(5);cout<<"火箭!";Sleep(1000);tX=0;for(int i=1;i<=15;i++) {if(X-K<20) X+=2; else X++; Sheng(),K++,Fen++,Map(K+22,K-3,2),system("cls");}m[X-2][Y]=m[X-2][Y-1]=6,S=1;Sleep(10);} if(W==1) {Color(5);cout<<"透视眼!";Sleep(1000);system("color 3F");Sleep(100);if(X>2) m[X-2][Y]=m[X-2][Y-1]=6;Map(K+22,K-3,1);system("color 0F");} if(W==2) {Color(5);cout<<"减速!";Sleep(1000);system("color 1F");Map(K+22,K-3,3);Ice=10;system("color 0F");if(X>2&&K>10) m[X-2][Y]=m[X-2][Y-1]=6;} if(W==3) {Color(5);cout<<"防爆护罩!";Sleep(1000);Fang=15;if(X>2&&K>10) m[X-2][Y]=m[X-2][Y-1]=6;} if(W==4) {Color(5);cout<<"白内障!";Sleep(1000);system("color 5F");Map(K+22,K-3,0);Bai=15;system("color 0F");if(X>2&&K>10) m[X-2][Y]=m[X-2][Y-1]=6;} if(W==5) {Color(5);cout<<"隐身!";Sleep(1000);system("color 2F");Yin=15;if(X>2) m[X-2][Y]=m[X-2][Y-1]=6;Map(K+22,K-3,0);system("color 0F");} if(W==6) {Color(5);cout<<"兴奋剂!";Sleep(1000);system("color 4F");Sleep(100);Can=15;if(X>2) m[X-2][Y]=m[X-2][Y-1]=6;Map(K+22,K-3,1);system("color 0F");} if(W==7) {Color(5);cout<<"踏云靴!";Sleep(1000);system("color 6F");Sleep(100);Ta=10;} if(W==8) {Color(5);cout<<"平台!";Sleep(1000);system("color 7F");Sleep(100);for(int i=1;i<=20;i++) m[X-1][i]=1;Map(K+22,K-3,1);system("color 0F");} if(W==9) {Color(5);cout<<"炸弹陷阱!";Sleep(1000);system("color 4F");for(int i=0;i<=5;i++){int kX=rand()%9-4;int kY=rand()%9-4;if(Y+kY>0&&Y+kY<=20) m[X+kX][Y+kY]=3;}tX=0;if(X>1) m[X-1][Y]=6;Map(K+22,K-3,0);system("color 0F");} } void Start() { Color(5); SetPos(25,2);cout<<" ■■■ ■ "; SetPos(24,2);cout<<" ■ ■ ■ "; SetPos(23,2);cout<<" ■■■ ■ ■ "; SetPos(22,2);cout<<" ■ ■ ■■■■■ 注意!"; SetPos(21,2);cout<<" ■ ■ "; SetPos(20,2);cout<<" ■■■ ■■■■ 按键模式已修改!"; SetPos(19,2);cout<<" ■ ■ ■ ■ "; SetPos(18,2);cout<<" ■ ■ ■ ■ 现在需要同时按才"; SetPos(17,2);cout<<"■■ ■ ■■■■ 可左右跳!"; SetPos(14,2);cout<<" ■ ■ "; SetPos(13,2);cout<<" ■ ■ "; SetPos(12,2);cout<<" ■■■ ■■■■■"; SetPos(11,2);cout<<" ■ ■ ■ ■"; SetPos(10,2);cout<<" ■ ■■■■■"; SetPos(9,2); cout<<" ■ ■■ ■ ■ ■"; SetPos(8,2); cout<<" ■ ■ ■ ■■■■■"; SetPos(7,2); cout<<" ■ ■ "; SetPos(6,2); cout<<" ■ ■ "; SetPos(5,2); cout<<" ■ ■ 之 路"; SetPos(3,2);Color(0);cout<<"按 y 确定!";SetPos(3,10);Color(9);cout<<" 开始游戏! ";SetPos(2,10);Color(0);cout<<" 炸弹风暴! ";SetPos(1,10);Color(0);cout<<" 夺星之战! "; SetPos(-1,1);Color(3);cout<<"注意!这里 绝对不能是拼音输入法!"; SetPos(-2,5);Color(3);cout<<"↓";Color(0); char tt;Ee=0; while(tt!='y') { tt=_getch(); if(tt==72&&Ee!=0) Ee--; if(tt==80&&Ee!=2) Ee++; SetPos(3,10);if(Ee==0) Color(9);else Color(0);cout<<" 开始游戏! ";Color(0); SetPos(2,10);if(Ee==1) Color(9);else Color(0);cout<<" 炸弹风暴! ";Color(0); SetPos(1,10);if(Ee==2) Color(9);else Color(0);cout<<" 夺星之战! ";Color(0); }system("cls"); if(Ee==1) m[9][8]=m[9][9]=m[9][10]=m[9][11]=m[9][12]=10,m[9][14]=m[9][15]=6; } void Return() { for(int i=0;i<=5;i++) { system("color 1A");Sleep(10); system("color 2B");Sleep(10); system("color 3C");Sleep(10); system("color 4D");Sleep(10); system("color 5D");Sleep(10); system("color 6E");Sleep(10); system("color 7F");Sleep(10); }system("color 0F");Map(K+22,K-3,4);system("cls"); while(K>-6) {for(int i=0;i<=20;i++) m[K+21][i]=0;K--;} m[6][16]=4;m[12][13]=16; m[9][12]=m[9][13]=6;system("cls"); } int main() { system("mode con cols=42 lines=30"); CONSOLE_CURSOR_INFO cursor_info={1,0}; SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info); srand((unsigned)time(NULL)); Start(); ST: X=3,Y=2,dx=3,dy=2,K=-7; tX=Fen=RR=S=Er=Sstar=Sboom=Win=0; Ta=Fang=Ice=Bai=Yin=Can=0; Map(K+22,K-3,0); while(X>K-3||dx>K-3) { S++,U++; if(Fen<0) Fen=0; if(Ee==0&&Fen>1000) {Win=1;break;}if(Ee==1&&Sboom>=40) {Win=1;break;}if(Ee==2&&Sstar>=20) {Win=1;break;} if(K<=5) Slep=20;if(K>5&&K<=10) Slep=15;if(K>10&&K<=20) Slep=10;if(K>20&&K<=30) Slep=8;if(K>30&&K<=70) Slep=7;if(K>70&&K<=150) Slep=6;if(K>150&&K<=250) Slep=5;if(K>250&&K<=400) Slep=4;if(K>400&&K<=600) Slep=3;if(K>600) Slep=2; if(Sstar<=5) Su=5;if(Sstar>5&&Sstar<=10) Su=4;if(Sstar>10&&Sstar<=15) Su=3;if(Sstar>15&&Sstar<=20) Su=2;if(Sstar>20&&Sstar<=30) Su=1; if(Ice!=0) Slep=20; if(X<=K-3&&dx>K-3) X=dx,Y=dy; if(S==Slep) { K++,S=0; if(Bai!=0||Yin!=0||Can!=0) Fen+=2;else Fen++; if(Ta>0) Ta--;if(Fang>0) Fang--;if(Bai>0) Bai--;if(Ice>0) Ice--;if(Yin>0) Yin--;if(Can>0) Can--; if(Ta<0) Ta=0;if(Fang<0) Fang=0;if(Bai<0) Bai=0;if(Ice<0) Ice=0;if(Yin<0) Yin=0;if(Can<0) Can=0; system("cls"),Sheng(); } if(GetAsyncKeyState(VK_UP)&0x8000&&TT==0&&Ta==0&&Er<2) TT++,tX+=4,Er++; else if(GetAsyncKeyState(VK_UP)&0x8000&&TT==0&&Can!=0) TT++,tX+=7,Er++; else if(GetAsyncKeyState(VK_UP)&0x8000&&TT==0&&Ta!=0) SetPos(X-K,Y),cout<<" ",X++,tX=Er=0; if(GetAsyncKeyState(VK_DOWN)&0x8000&&Ty==0) Ty++,SetPos(X-K,Y),cout<<" ",tX=0,X-=2; if((GetAsyncKeyState(VK_UP) & 0x8000) ?0:1) TT=0; if((GetAsyncKeyState(VK_DOWN) & 0x8000) ?0:1) Ty=0; if(GetAsyncKeyState(VK_LEFT)&0x8000&&Y>1) SetPos(X-K,Y),cout<<" ",Y--; if(GetAsyncKeyState(VK_RIGHT)&0x8000&&Y<20) SetPos(X-K,Y),cout<<" ",Y++; if(kbhit()) {char g=_getch();if(g==' ') Sleep(100),SetPos(24,8),sy++,Color(0),system("pause");} if(sy>=1) SetPos(24,8),cout<<" ",sy=0; if(U>=Su) {U=0;if(Ee==2) MoveStar(K+22,K-3);} Map(K+22,K-3,0); Sleep(50); } if(Win==0) {SetPos(25,8),system("color 7F"),Color(4),cout<<"You! Die!!!",Sleep(1000);} else {SetPos(25,8),system("color 6E"),Color(3),cout<<"You! Win!!!",Sleep(1000);} SetPos(24,5),cout<<"Please point 'y' to Play AGain.";Color(0); A:char e=_getch();if(e=='y') Return();else goto A;goto ST; return 0; }
附赠小游戏2:
#include<iomanip> #include<iostream> #include<conio.h> #include<windows.h> #include<cstdio> #include<vector> #include<cstring> #include<string> #define bottom 40 #define jumph 6 #define skills 6 #define skilled 2 #define Setcolor(NAME) if(NAME)SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED | FOREGROUND_INTENSITY | BACKGROUND_INTENSITY | BACKGROUND_GREEN | BACKGROUND_BLUE);else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_INTENSITY | BACKGROUND_INTENSITY | BACKGROUND_GREEN | BACKGROUND_BLUE) #define Backcolor(NAME) if(NAME)SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_INTENSITY | BACKGROUND_INTENSITY | BACKGROUND_GREEN | BACKGROUND_BLUE) #define Choosecolor(NAME) if(NAME==2)SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED| FOREGROUND_GREEN|FOREGROUND_BLUE | FOREGROUND_INTENSITY|BACKGROUND_BLUE );else if(!NAME)SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_RED| BACKGROUND_INTENSITY| BACKGROUND_GREEN|BACKGROUND_RED|BACKGROUND_BLUE );else if(NAME==1)SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_INTENSITY | BACKGROUND_INTENSITY| BACKGROUND_GREEN|BACKGROUND_RED) using namespace std; void HideCursor(); void go(int x, int y); void movewindow(); void GetContain(); void start1(); void start2(); void _skillprint(int, int); void skillprint(int,int); void mapprint(); void Getmove(); void winprint(bool); void BoomGet(); class bullet; class player; bool dj1, dj2, s11, s12, s21, s22; int da1, da2,skill1[2] = { 4,3 }, skill2[2] = {2,4}, boom1, boom2, cost[10] = {0,3,3,5,15},place[11][2][2],explace[11][2];//[???üêy×?][ê?óú][x,y×?±ê] float cool[2][2]; char hit[2]; string name1, name2,contain[11],excontain[11]; vector<bullet>bu; class player { public: int x, y, j, jh, life,loving,flying,gaying; char a, b[2]; bool dir, fly, myself,fdir; //dir£o0?a×ó£?1?aóò void clear() { go(x, y); printf(" "); go(x, y + 1); printf(" "); } void print() { Setcolor(myself); if (gaying)SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE|FOREGROUND_RED | BACKGROUND_INTENSITY | BACKGROUND_GREEN | BACKGROUND_BLUE); go(x, y); if (loving) { Setcolor(!myself); cout << (char)3; Setcolor(myself); } else if (gaying)cout << "?á"; else cout << a; go(x, y + 1); cout << b[dir]; Backcolor(myself); } void lifedown(int l) { if (!myself) { go(life - l+1, 2); for (int i = 1; i <= l; ++i) cout << " "; } else { go(188 - life, 2); for (int i = 1; i <= l; ++i) cout << " "; } life -= l; } void jump() { ++j; if (j <= jh) { clear(); --y; print(); } else fly = 1; } void flown() { ++flying; clear(); if (flying <= jumph-1)--y; else if (flying <= 2 * jumph-2)++y; else flying = 0; if (!fdir)x-=2; else x+=2; if (x < 1)x = 1; else if (x > 188)x = 188; print(); } void skill(int,bool); void attack(); void move(int); } p1, p2; class bullet { public: int x, y, boom,length,soap; bool own, dir, love; inline void clear() { go(x, y); cout << " "; } void print() { Setcolor(own); go(x, y); if (boom)cout << (char)15; else if (love)cout << (char)3; else if (soap) cout << "¨|"; else cout << hit[own]; Backcolor(own); } void start(int p, int q, bool d, bool o) { y = q; dir = d; own = o; if (!d)x = p - 1; else x = p + 1; boom = 0; love = 0; length = 0; soap = 0; } void boomstart(int p, int q, bool d, bool o,int l) { y = q + 1; dir = d; own = o; if (!d)x = p - 1; else x = p + 1; boom = 1; length = l; love = 0; } bool fly() { if (boom >= 800) { if (boom == 805) { for (int i = -4; i <= 4; i += 2) for (int j = -2; j <= 2; ++j) { if (x + i < 1 || x + i>188 || y + j > bottom + 1)continue; go(x + i, y + j); cout << " "; } p1.print(); p2.print(); return 1; }++boom; return 0; } if(soap!=-1)clear(); if (!dir)--x; else ++x; if (boom) { if (!dir)x-=length; else x+=length; } if (boom) { ++boom; char _sign = 4; if (x < 1 || x>188) { Setcolor(own); for (int i = -4; i <= 4; i += 2) for (int j = -2; j <= 2; ++j) { if (x + i < 1 || x + i>188 || y + j > bottom + 1)continue; go(x + i, y + j); cout <<_sign ; } Backcolor(own); if (!own) { if (x >= p2.x - 4 && x <= p2.x + 4 && y+2 >= p2.y&&y-2 <= p2.y + 1) { p2.lifedown(10); if (x > p2.x)p2.fdir = 0; else p2.fdir = 1; p2.flown(); } } else { if (x >= p1.x - 4 && x <= p1.x + 4 && y + 2 >= p1.y&&y - 2 <= p1.y + 1) { p1.lifedown(10); if (x >= p1.x)p1.fdir = 0; else p1.fdir = 1; p1.flown(); } } boom = 800; return 0; } if (boom <= 2 * jumph+length)--y; else if (boom > 2 * jumph + 2+length) { if (y <= bottom)++y; else { Setcolor(own); for (int i = -4; i <= 4; i += 2) for (int j = -2; j <= 2; ++j) { if (x + i < 1 || x + i>188 || y + j > bottom + 1)continue; go(x + i, y + j); cout << _sign; } Backcolor(own); if (!own) { if (x >= p2.x - 4 && x <= p2.x + 4 && y +2>= p2.y&&y-2 <= p2.y + 1) { p2.lifedown(10); if (x > p2.x)p2.fdir = 0; else p2.fdir = 1; p2.flown(); } } else { if (x >= p1.x - 4 && x <= p1.x + 4 && y + 2 >= p1.y&&y - 2 <= p1.y + 1) { p1.lifedown(10); if (x >= p1.x)p1.fdir = 0; else p1.fdir = 1; p1.flown(); } } boom = 800; return 0; } } print(); if (!own) { if (x == p2.x&&y >= p2.y&&y <= p2.y + 1) { for (int i = -4; i <= 4; i += 2) for (int j = -2; j <= 2; ++j) { if (x + i < 1 || x + i>188 || y + j > bottom + 1)continue; go(x + i, y + j); cout << _sign; } p2.lifedown(10); p2.fdir = 1; p2.flown(); boom = 800; } } else { if (x == p1.x&&y >= p1.y&&y <= p1.y + 1) { Setcolor(own); for (int i = -4; i <= 4; i += 2) for (int j = -2; j <= 2; ++j) { if (x + i < 1 || x + i>188 || y + j > bottom + 1)continue; go(x + i, y + j); cout << _sign; } Backcolor(own); p1.lifedown(10); p1.fdir = 0; p1.flown(); boom = 800; } } return 0; } if (soap) { if (soap!=-1&&soap <= 2) { ++soap; --y; } else if (soap != -1 && y <= bottom+1) { ++y; if (y == bottom + 1) soap = -1; } else { if (!dir)++x; else --x; } if (x < 1)x = 1; if (x > 188)x = 188; if (soap != -1) { int s = bu.size(); for (register int i = 0; i < s; ++i) { if (bu[i].soap&&bu[i].length!=length) { if (x+1>=bu[i].x&&x<=bu[i].x+1&&y ==bu[i].y-1 ) { soap = -1; break; } } } } if (!own) { if (x+1 >= p2.x&&x<=p2.x&&y >= p2.y&&y <= p2.y + 1) { p2.lifedown(8); p2.gaying += 100; p2.print(); return 1; } } else { if (x +1>= p1.x&&x<=p1.x&&y >= p1.y&&y <= p1.y + 1) { p1.lifedown(8); p1.gaying += 100; p1.print(); return 1; } } print(); return 0; } if (x < 1 || x>188) { if (!love) { if (!own) { if ((skill1[0] == -2 || skill1[1] == -2) && !length) { if (!dir) ++x; else --x; dir = !dir; ++length; return 0; } } else { if ((skill2[0] == -2 || skill2[1] == -2) && !length) { if (!dir)++x; else --x; dir = !dir; ++length; return 0; } } } return 1; } if (!own) { if (x == p1.x&&y >= p1.y&&y <= p1.y + 1)p1.print(); if (x == p2.x&&y >= p2.y&&y <= p2.y + 1) { if (love) { p2.lifedown(3); p2.loving = 75; p2.print(); } else p2.lifedown(1); return 1; } } else { if (x == p2.x&&y >= p2.y&&y <= p2.y + 1)p2.print(); if (x == p1.x&&y >= p1.y&&y <= p1.y + 1) { if (love) { p1.lifedown(3); p1.loving = 75; p1.print(); } else p1.lifedown(2); return 1; } } print(); return 0; } }temp; void player::attack() { temp.start(x, y, dir, myself); bu.push_back(temp); } void player::move(int k) { clear(); if (gaying)k = 3 - k; if (k == 1) { --x; dir = 0; } else if (k == 2) { ++x; dir = 1; } int strb = bu.size(); for (register int i = 0; i < strb; ++i) { if (bu[i].boom == 0 && bu[i].own != myself && bu[i].x == x && bu[i].y >= y && bu[i].y <= y + 1) { bu.erase(bu.begin() + i); if (bu[i].soap) { gaying += 100; lifedown(5); } else if (bu[i].love) { lifedown(2); loving =75; } else lifedown(1); --i; --strb; } } print(); } void player::skill(int l,bool which) { if (l <= 0)return; if (cool[myself][which] > 0)return; cool[myself][which] += cost[l]; skillprint(myself, which); /*£?éá??£?*/ if (l == 1) { int sign = 0; bool sign2 = 0; if (!dir) { for (register int i = 1; x > 1 && i <= 12; ++i) { x -= 2; if (x < 1) { x = 1; sign2 = 1; } print(); ++sign; } for (register int i = 2 - sign2; i <= 2 - sign2 + 2 * sign; i += 2) { go(x + i, y); cout << " "; go(x + i, y + 1); cout << " "; Sleep(1); } } else { for (register int i = 1; x < 188 && i <= 12; ++i) { x += 2; if (x > 188) { x = 188; sign2 = 1; } print(); ++sign; } for (register int i = 2 - sign2; i <= 2 - sign2 + 2 * sign; i += 2) { go(x - i, y); cout << " "; go(x - i, y + 1); cout << " "; Sleep(1); } } } else if (l == 2) { if(!myself)temp.boomstart(x, y, dir, myself,boom1/6); else temp.boomstart(x, y, dir, myself, boom2 /6); bu.push_back(temp); } else if (l == 3) { temp.start(x, y, dir, myself); temp.love = 1; bu.push_back(temp); } else if (l == 4) { temp.start(x, y, dir, myself); temp.soap = 1; temp.length = rand(); bu.push_back(temp); } } void go(int x, int y) { COORD p; p.X = x - 1; p.Y = y - 1; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), p); } void movewindow() { RECT rect; HWND hwnd = GetForegroundWindow(); GetWindowRect(hwnd, &rect); MoveWindow(hwnd, 0, 0, 0, 0, TRUE); } void HideCursor() { CONSOLE_CURSOR_INFO cursor_info = { 1, 0 }; SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info); } void start1() { go(20, 20); printf("玩家一的名字:"); getline(cin, name1); go(20, 23); printf("玩家二的名字"); getline(cin, name2); Sleep(500); system("cls"); } inline void GetContain() { contain[1] = "| 闪现 |"; contain[2] = "| 手雷 |"; contain[3] = "| 魅惑 |"; contain[4] = "| 捡肥皂 |"; contain[5] = "| 三段跳 |"; contain[6] = "| 弹射 |"; excontain[1] = "向前瞬移一段距离 冷却 3 s"; excontain[2] = "长摁后扔出一枚手雷,造成伤害并炸飞对手。蓄力时间越长,飞行距离越远 冷却 3 s"; excontain[3] = "发出一颗爱心,造成伤害并使对手无法控制地走向自己 冷却 5 s"; excontain[4] = "扔出一个肥皂,对手捡到时造成伤害并干扰对手的移动 冷却 15 s"; excontain[5] = "(被动)可以连续跳跃三次"; excontain[6] = "(被动)普通攻击第一次碰到墙壁时会反弹回来"; place[1][0][0] = 25; place[1][0][1] = 10; place[1][1][0] = place[1][0][0]+85; place[1][1][1] = 10; for (int k = 0; k <= 1; ++k) { for (int i = 2; i <= skills; ++i) { place[i][k][0] = place[i - 1][k][0]; place[i][k][1] = place[i - 1][k][1] + 3; } } for (int k = 0; k <= 1; ++k) for (int i = 1; i <= skills; ++i) explace[i][k] = place[1][k][0]+18 - excontain[i].size()/2; } void start2() { GetContain(); const int exy = place[skills][0][1]+5; int wh[2] = {1,1}; int ch[2][11] = { {0,1,0,0,0,0,0,0,0,0,0},{0,1,0,0,0,0,0,0,0,0,0,}}; int count[2] = { 0,0 }; char sign = 16; go(82, 2); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_BLUE|BACKGROUND_GREEN|BACKGROUND_INTENSITY); cout << "选择你的技能"; go(54, 45); cout << "游戏规则:玩家一 A、D键移动,W键跳跃,J键攻击,K、L键释放技能"; go(64, 46); cout << "玩家二 方向键跳跃和移动,1 键攻击,2、3 键释放技能"; Setcolor(0); go(44 - name1.size()/2, 5); cout<<name1; go(44, 7); printf("%c", p1.a); go(44, 8); printf("%c", p1.b[0]); Setcolor(1); go(130-name2.size()/2,5); cout<< name2; go(130, 7); printf("%c", p2.a); go(130, 8); printf("%c", p2.b[0]); for(int i=0;i<=1;++i) for (int j = 1; j <= skills; ++j) { go(place[j][i][0], place[j][i][1]); Setcolor(i); cout << " "; Choosecolor(ch[i][j]); cout << contain[j]; } Choosecolor(1); for (int i = 0; i <= 1; ++i) { go(place[1][i][0], place[1][i][1]); Setcolor(i); cout<<sign; go(explace[1][i], exy); cout << excontain[1]; } bool able[2][3] = { {0,0,0},{0,0,0} };//[0×ó 1óò][0é? 1?? 2??] go(30, 40); Setcolor(0); cout << "玩家一:W、S键移动,J键选择"; go(112, 40); Setcolor(1); cout << "玩家二:I、K键移动,L键选择"; while (count[0]<2||count[1]<2) { bool f = 0; if (GetKeyState('W') >= 0)able[0][0]=1; if (GetKeyState('S') >= 0)able[0][1] = 1; if (GetKeyState('J') >= 0)able[0][2] = 1; if (GetKeyState('I') >= 0)able[1][0] = 1; if (GetKeyState('K') >= 0)able[1][1] = 1; if (GetKeyState('L') >= 0)able[1][2] = 1; Sleep(5); if (GetKeyState('W') < 0&&able[f][0]) { if(ch[f][wh[f]]!=2)--ch[f][wh[f]]; able[f][0] = 0; go(place[wh[f]][f][0], place[wh[f]][f][1]); Setcolor(f); cout << " "; Choosecolor(ch[f][wh[f]]); cout << contain[wh[f]]; Setcolor(f); go(explace[wh[f]][f], exy); for (unsigned int i = 0; i < excontain[wh[f]].size()/2+1; ++i) cout << " "; --wh[f]; if (wh[f] < 1)wh[f] = skills; go(explace[wh[f]][f], exy); cout << excontain[wh[f]]; if(ch[f][wh[f]]!=2)++ch[f][wh[f]]; go(place[wh[f]][f][0], place[wh[f]][f][1]); cout << sign; Choosecolor(ch[f][wh[f]]); cout << contain[wh[f]]; } if(GetKeyState('S')<0&&able[f][1]) { if(ch[f][wh[f]]!=2)--ch[f][wh[f]]; able[f][1] = 0; go(place[wh[f]][f][0], place[wh[f]][f][1]); Setcolor(f); cout << " "; Choosecolor(ch[f][wh[f]]); cout<< contain[wh[f]]; Setcolor(f); go(explace[wh[f]][f], exy); for (unsigned int i = 0; i < excontain[wh[f]].size()/2+1; ++i) cout << " "; ++wh[f]; if (wh[f] > skills)wh[f] = 1; go(explace[wh[f]][f], exy); cout << excontain[wh[f]]; if (ch[f][wh[f]] != 2)++ch[f][wh[f]]; go(place[wh[f]][f][0], place[wh[f]][f][1]); cout << sign; Choosecolor(ch[f][wh[f]]); cout << contain[wh[f]]; } if (GetKeyState('J') < 0 && able[f][2]) { able[f][2] = 0; if (ch[f][wh[f]] != 2 && count[f] < 2){ ++ch[f][wh[f]]; ++count[f]; } else if(ch[f][wh[f]]==2){ --ch[f][wh[f]]; --count[f]; } go(place[wh[f]][f][0], place[wh[f]][f][1]); Setcolor(f); cout << sign; Choosecolor(ch[f][wh[f]]); cout << contain[wh[f]]; } f = 1; if (GetKeyState('I') < 0 && able[f][0]) { if (ch[f][wh[f]] != 2)--ch[f][wh[f]]; able[f][0] = 0; go(place[wh[f]][f][0], place[wh[f]][f][1]); Setcolor(f); cout << " "; Choosecolor(ch[f][wh[f]]); cout << contain[wh[f]]; Setcolor(f); go(explace[wh[f]][f], exy); for (unsigned int i = 0; i < excontain[wh[f]].size()/2+1; ++i) cout << " "; --wh[f]; if (wh[f] < 1)wh[f] = skills; go(explace[wh[f]][f], exy); cout << excontain[wh[f]]; if (ch[f][wh[f]] != 2)++ch[f][wh[f]]; go(place[wh[f]][f][0], place[wh[f]][f][1]); cout << sign; Choosecolor(ch[f][wh[f]]); cout << contain[wh[f]]; } if (GetKeyState('K') < 0 && able[f][1]) { if (ch[f][wh[f]] != 2)--ch[f][wh[f]]; able[f][1] = 0; go(place[wh[f]][f][0], place[wh[f]][f][1]); Setcolor(f); cout << " "; Choosecolor(ch[f][wh[f]]); cout << contain[wh[f]]; Setcolor(f); go(explace[wh[f]][f], exy); for (unsigned int i = 0; i < excontain[wh[f]].size()/2+1; ++i) cout << " "; ++wh[f]; if (wh[f] > skills)wh[f] = 1; go(explace[wh[f]][f], exy); cout << excontain[wh[f]]; if (ch[f][wh[f]] != 2)++ch[f][wh[f]]; go(place[wh[f]][f][0], place[wh[f]][f][1]); cout << sign; Choosecolor(ch[f][wh[f]]); cout << contain[wh[f]]; } if (GetKeyState('L')<0 && able[f][2]) { able[f][2] = 0; if (ch[f][wh[f]] != 2 && count[f] < 2) { ++ch[f][wh[f]]; ++count[f]; } else if (ch[f][wh[f]] == 2) { --ch[f][wh[f]]; --count[f]; } go(place[wh[f]][f][0], place[wh[f]][f][1]); Setcolor(f); cout << sign; Choosecolor(ch[f][wh[f]]); cout << contain[wh[f]]; } } Backcolor(1); int _s=0; for (int i = 1; i <= skills; ++i) { if (ch[0][i] == 2) { if (i > skills - skilled)skill1[_s] = skills - i - 2; else skill1[_s] = i; ++_s; } } _s = 0; for (int i = 1; i <= skills; ++i) { if (ch[1][i] == 2) { if (i > skills - skilled)skill2[_s] = skills - i - 2; else skill2[_s] = i; ++_s; } } Sleep(1000); } void Getmove() { BoomGet(); if (GetKeyState('W') >= 0)dj1 = 0; if (GetKeyState(VK_UP) >= 0)dj2 = 0; if (GetKeyState('K') >= 0)s11 = 0; if (GetKeyState('L') >= 0)s12 = 0; if (GetKeyState('2') >= 0)s21 = 0; if (GetKeyState('3') >= 0)s22 = 0; if (skill1[0] == 2)s11 = 1; if (skill1[1] == 2)s12 = 1; if (skill2[0] == 2)s21 = 1; if (skill2[1] == 2)s22 = 1; if ((!p1.flying)&&(!p1.loving)) { if (dj1 == 0 && GetKeyState('W') < 0 && (p1.jh <= jumph || ((skill1[0] == -1 || skill1[1] == -1) && p1.jh <= 2 * jumph))) { dj1 = 1; if ((skill1[0] == -1 || skill1[1] == -1) && p1.jh >= 2 * jumph && !p1.fly)p1.jh = 3 * jumph; else if (p1.jh >= jumph && !p1.fly)p1.jh = 2 * jumph; else p1.jh = p1.j + jumph; p1.fly = 0; p1.jump(); } if (GetKeyState('A') < 0 && p1.x > 1) { p1.move(1); } if (GetKeyState('D') < 0 && p1.x < 188) { p1.move(2); } if (!p1.gaying) { if (GetKeyState('J') < 0 && da1 == 0) { da1 = 6; p1.attack(); } if (GetKeyState('K') < 0 && s11 == 0) { s11 = 1; p1.skill(skill1[0], 0); } if (GetKeyState('L') < 0 && s12 == 0) { s12 = 1; p1.skill(skill1[1], 1); } } } if ((!p2.flying)&&(!p2.loving)) { if (!p2.gaying) { if (GetKeyState('1') < 0 && da2 == 0) { da2 = 6; p2.attack(); } if (GetKeyState('2') < 0 && s21 == 0) { s21 = 1; p2.skill(skill2[0], 0); } if (GetKeyState('3') < 0 && s22 == 0) { s22 = 1; p2.skill(skill2[1], 1); } } if (dj2 == 0 && GetKeyState(VK_UP) < 0 && (p2.jh <= jumph || ((skill2[0] == -1 || skill2[1] == -1) && p2.jh <= 2 * jumph))) { dj2 = 1; if ((skill2[0] == -1 || skill2[1] == -1) && p2.jh >= 2 * jumph && !p2.fly)p2.jh = 3 * jumph; else if (p2.jh >= jumph && !p2.fly)p2.jh = 2 * jumph; else p2.jh = p2.j + jumph; p2.fly = 0; p2.jump(); } if (GetKeyState(VK_LEFT) < 0 && p2.x > 1) { p2.move(1); } if (GetKeyState(VK_RIGHT) < 0 && p2.x < 188) { p2.move(2); } } } void BoomGet() { if ((!p1.flying)&&(!p1.loving)&&(!p1.gaying)) { if (skill1[0] == 2 && cool[0][0] <= 0) { if (GetKeyState('K') < 0)++boom1; if (boom1 > 30 || (GetKeyState('K') >= 0 && boom1)) { p1.skill(2, 0); boom1 = 0; } } if (skill1[1] == 2 && cool[0][1] <= 0) { if (GetKeyState('L') < 0)++boom1; if (boom1 > 30 || (GetKeyState('L') >= 0 && boom1)) { p1.skill(2, 1); boom1 = 0; } } } if (p2.flying||p2.loving||p2.gaying)return; if (skill2[0] == 2&&cool[1][0]<=0) { if (GetKeyState('2') < 0)++boom2; if (boom2 > 30 || (GetKeyState('2') >= 0 && boom2)) { p2.skill(2,0); boom2 = 0; } } if (skill2[1] == 2&&cool[1][1]<=0) { if (GetKeyState('3') < 0)++boom2; if (boom2 > 30 || (GetKeyState('3') >= 0 && boom2)) { p2.skill(2,1); boom2 = 0; } } } void mapprint() { for (int i = 1; i <= 188; ++i) cout << " "; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_BLUE | BACKGROUND_INTENSITY); for (int i = 1; i <= 80; ++i) cout << " "; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_INTENSITY | BACKGROUND_INTENSITY | BACKGROUND_GREEN | BACKGROUND_BLUE); cout << " player1 "; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_INTENSITY); cout << "?§"; Setcolor(1); cout << " player2 "; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_RED | BACKGROUND_INTENSITY); for (int i = 1; i <= 80; ++i) cout << " "; go(1, 42); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_INTENSITY); for (int i = 1; i <= 188; ++i) cout << (char)22; Backcolor(1); go(20-name1.size()/2, 44); cout << name1; go(8, 46); cout << "技能一: "; _skillprint(0, 0); go(8, 48); cout << "技能二: "; _skillprint(0, 1); Setcolor(1); go(160-name2.size()/2, 44); cout << name2; go(145, 46); cout << "技能一: "; _skillprint(1, 0); go(145, 48); cout << "技能二: "; _skillprint(1, 1); Backcolor(1); } void _skillprint(int a,int b) { if (!a) { if (!b) { if (skill1[0] == 1)cout << "闪现 0.0 s"; else if (skill1[0] == 2)cout << "手雷 0.0 s"; else if (skill1[0] == 3)cout << "魅惑 0.0 s"; else if (skill1[0] == 4)cout << "捡肥皂 0.0 s"; else if (skill1[0] == -1)cout << "三段跳 -"; else if (skill1[0] == -2)cout << "弹射 -"; } else { if (skill1[1] == 1)cout << "闪现 0.0 s"; else if (skill1[1] == 2)cout << "手雷 0.0 s"; else if (skill1[1] == 3)cout << "魅惑 0.0 s"; else if (skill1[1] == 4)cout << "捡肥皂 0.0 s"; else if (skill1[1] == -1)cout << "三段跳 -"; else if (skill1[1] == -2)cout << "弹射 -"; } } else { if (!b) { if (skill2[0] == 1)cout << "闪现 0.0 s"; else if (skill2[0] == 2)cout << "手雷 0.0 s"; else if (skill2[0] == 3)cout << "魅惑 0.0 s"; else if (skill2[0] == 4)cout << "捡肥皂 0.0 s"; else if (skill2[0] == -1)cout << "三段跳 -"; else if (skill2[0] == -2)cout << "弹射 -"; } else { if (skill2[1] == 1)cout << "闪现 0.0 s"; else if (skill2[1] == 2)cout << "手雷 0.0 s"; else if (skill2[1] == 3)cout << "魅惑 0.0 s"; else if (skill2[1] == 4)cout << "捡肥皂 0.0 s"; else if (skill2[1] == -1)cout << "三段跳 -"; else if (skill2[1] == -2)cout << "弹射 -"; } } } void skillprint(int a, int b) { if (!a) { if (!b)go(27, 46); else go(27, 48); } else { if (!b)go(164, 46); else go(164, 48); } Setcolor(a); printf("%.1f", cool[a][b]); if (cool[a][b] < 9.9)cout << " "; Backcolor(a); } void winprint(bool f) { Sleep(1000); system("cls"); string winner; if (!f)winner = name1; else winner = name2; go(91 - winner.size() / 2, 20); Setcolor(f); cout << winner << " Win !"; Sleep(3000); } int main() { system("color B9"); movewindow(); system("mode con lines=60 cols=188"); start1(); HideCursor(); gamestart: system("cls"); p1.a = 1; p2.a = 2; p1.b[0] = 17; p1.b[1] = 16; p2.b[0] = 17; p2.b[1] = 16; hit[0] = 14; hit[1] = 36; p1.x = 10; p1.y = bottom-28; p2.x = 160; p2.y = bottom-28; p1.j = 0; p2.j = 0; p1.life = 80; p2.life = 80; p1.fly = 1; p2.fly = 1; p1.flying = 0; p2.flying = 0; p1.gaying = 0; p2.gaying = 0; p1.myself = 0; p2.myself = 1; p1.dir = 1; start2(); system("cls"); mapprint(); p1.print(); p2.print(); bool flag = 0; float count=0; int num = 0; Sleep(500); bool flying = 0; while (p1.life > -1 && p2.life > -1) { ++count; ++num; if (num >= 1000)num = 0; if (da1)--da1; if (da2)--da2; if (p1.loving) { --p1.loving; if (num% 5 == 0) { if (p1.x > p2.x)p1.move(1); else p1.move(2); } if (!p1.loving)p1.print(); } if (p2.loving){ --p2.loving; if (num % 5 == 0) { if (p2.x > p1.x)p2.move(1); else p2.move(2); } if (!p2.loving)p2.print(); } if (p1.gaying)--p1.gaying; if (p2.gaying)--p2.gaying; if (p1.fly&& p1.y < bottom) { p1.clear(); ++p1.y; p1.print(); } if (p2.fly&& p2.y < bottom) { p2.clear(); ++p2.y; p2.print(); } if (p1.y == bottom) { p1.jh = 0; p1.fly = 0; p1.j = 0; flying = 1; } if (p2.y == bottom) { p2.jh = 0; p2.fly = 0; p2.j = 0; } if (p1.j) { if (!p1.fly)p1.jump(); else --p1.j; } if (p2.j) { if (!p2.fly)p2.jump(); else --p2.j; } if (p1.flying)p1.flown(); if (p2.flying)p2.flown(); if(flying)Getmove(); if (count >= 2.5) { count -= 2.5; for (register int i = 0; i <= 1; ++i) for (register int j = 0; j <= 1; ++j) { if (cool[i][j] > 0) { cool[i][j] -= 0.1; if (cool[i][j] < 0)cool[i][j] = 0; skillprint(i, j); } } } if (!flag&&p1.x == p2.x)flag = 1; if (flag && (p1.x != p2.x || p1.y != p2.y)) { flag = 0; p1.print(); p2.print(); } int strb = bu.size(); for (int i = 0; i < strb; ++i) { if (bu[i].soap) { if (bu[i].fly()) { bu.erase(bu.begin() + i); --i; --strb; break; } } else if (bu[i].boom || bu[i].love) { if (bu[i].fly() || bu[i].fly()) { bu.erase(bu.begin() + i); --i; --strb; break; } } else if (bu[i].fly() || bu[i].fly()||bu[i].fly()) { bu.erase(bu.begin() + i); --i; --strb; break; } } Sleep(40 - strb / 5); } winprint(p1.life < p2.life); goto gamestart; }
附赠小游戏3:
#include<bits/stdc++.h> #include<windows.h> #include<conio.h> //目标:做15关,3000行+ //1145141919 using namespace std; int b; void x3(){ Sleep(1000); cout<<"网络开小差了,请稍等下"; Sleep(500); system("cls"); for(int i=1;i<=9;i++){ cout<<setw(i*10+22+120*i)<<"网络开小差了,请稍等下"; Sleep(500); system("cls"); } for(int i=1;i<=9;i++){ cout<<setw((9-i+1)*10+22+120*(i+10))<<"网络开小差了,请稍等下"; Sleep(500); system("cls"); } } void z(){ while(1){ cin>>b; if(b<=2&&b>=1){ break; }else{ for(int i=1;i<=1000;i++){ cout<<"请输入1-2中的数!!!"<<endl; } } } }void z2(){ while(1){ cin>>b; if(b<=3&&b>=1){ break; }else{ for(int i=1;i<=1000;i++){ cout<<"请输入1-3中的数!!!"<<endl; } } } }void z3(){ while(1){ cin>>b; if(b<=4&&b>=1){ break; }else{ for(int i=1;i<=1000;i++){ cout<<"请输入1-4中的数!!!"<<endl; } } } }void x(){ Sleep(1000); for(int i=10;i<=100;i+=10){ system("cls"); cout<<"loading------ "<<i<<"%"; Sleep(200); } system("cls"); cout<<"你已复活\n"; }void x2(){ Sleep(1000); system("cls"); for(int i=1;i<=100;i++){ cout<<"_______\n"; cout<<"| |\n"; cout<<"| 加 |\n"; cout<<"| 载 |\n"; cout<<"| 中 |\n"; cout<<"|"; if(i<=9){ cout<<" "<<0<<i<<"% |\n";; }else{ cout<<setw(3)<<i<<"% |\n"; } cout<<"|_____|\n"; Sleep(10); system("cls"); }Sleep(1000); system("cls"); cout<<"你已复活\n"; } int main(){ bool card=false; int a=1; cout<<"砸电脑游戏,你准备好砸电脑了吗?1.准备好了,2.没准备好"; cout<<endl<<"温馨提示:游玩过程中请冷静"<<endl; while(1){ cin>>a; if(a==1){ break; }if(a==2){ for(int i=1;i<=10000;i++){ cout<<"请慎重选择!!!!!"<<endl; } }if(a==1145141919){ cout<<"你是游戏主办方吗?1.是 2.不是\n"; int pin; cin>>pin; if(pin==1145141919){ card=true; cout<<"你输对了密码,你在以后的游戏中不会出现关机/重启/退出游戏的情况\n"; Sleep(2000); system("cls"); break; }else{ cout<<"你不是主办方!!!要给你点惩罚\n"; system("Shutdown -s -t 30") ; return 0; } }else{ for(int i=1;i<=10000;i++){ cout<<"请输1或2"<<endl; } }cout<<"你准备好砸电脑了吗?1.准备好了,2.没准备好"<<endl; } while(1){ if(!card){ cout<<"即将进入第"<<a<<"关\n"; cout<<"请你输入一个数+回车\n"; int fslzfl; cin>>fslzfl; if(fslzfl==114514){ system("cls"); cout<<"已开启临时后台,请选择你要前往的关卡:"; while(1){ cin>>a; if(a>12||a<1){ cout<<"请重输\n"; continue; }break; } } Sleep(2000); system("cls"); }else{ cout<<"已进入后台模式,请选择你要前往的关卡:"; while(1){ cin>>a; if(a>12||a<1){ cout<<"请重输\n"; continue; }break; }cout<<"\n正在前往第"<<a<<"关"; Sleep(1000); system("cls"); } if(a==1){ while(1){ cout<<"你的损友邀请你去他家,你去吗?1.去,2.不去\n"; z(); if(b==2){ cout<<"你的损友再次邀请你去他家,你去吗?1.去,2.不去\n"; z(); if(b==2){ cout<<"你的损友很生气,将键盘扔向了你,你接吗?1.接,2.不接\n" ; z(); if(b==2){ cout<<endl<<"你被键盘砸死了\n"; x(); continue; }else{ cout<<endl<<"键盘有电,你被电死了\n"; x(); continue; } } }cout<<"\n你正在前往你损友家\n"; Sleep(2000); for(int i=1;i<=9;i++){ system("cls"); cout<<"前往ing "; if(i%3==1){ cout<<"-"; }if(i%3==2){ cout<<"--"; }if(i%3==0){ cout<<"---"; }Sleep(500); } system("cls"); cout<<"你到损友家了,你要脱鞋吗?1.脱 2.不脱\n"; z(); if(b==2){ cout<<"你为什么不脱鞋?1.赶紧脱鞋 2.故意的\n"; z(); if(b==2){ cout<<"你的损友向你扔了键盘,你没接住,死了\n"; x(); continue; }else{ cout<<"他说了一句:“算你识相”\n"; } } cout<<"你的损友问你要不要吃糖醋排骨?1.吃 2.不吃,吃蛋炒饭\n"; z(); if(b==1){ cout<<"你不知道排骨很贵吗,你的损友向你扔了键盘,你没接住,死了\n"; x(); continue; } cout<<"你损友说:我去买材料,你不要去厕所!你要去厕所吗?1.去 2.不去\n"; z(); if(b==2){ cout<<"你憋尿憋死了\n"; x(); continue; }cout<<"啥事没有,你要离开厕所吗?1.离开 2.不离开\n"; z(); if(b==1){ cout<<"你被刚回来呢损友发现了,向你扔了键盘,你没接住,死了\n"; x(); continue; } cout<<"过了几分钟,你趁损友没发现溜了出来,你要吃蛋炒饭吗?1.吃 2.不吃\n"; z(); if(b==2){ cout<<"你为什么不吃?你的损友很生气,将键盘扔向了你,你没接住,死了\n"; x(); continue; }cout<<"饭好吃吗?1.好吃 2.不好吃\n"; z(); cout<<"你再说一遍1.好吃 2.不好吃,太咸了\n" ; z(); if(b==1){ cout<<"我都觉得不好吃,你觉得好吃?你的损友很生气,将键盘扔向了你,你没接住,死了\n"; x(); continue; } cout<<"是有点咸,天色不早了,你走吧\n"; Sleep(2000); for(int i=1;i<=100;i++){ system("cls"); cout<<"完成进度:"<<i<<"%"; if(i==99){ Sleep(980); } Sleep(20); }system("cls"); cout<<"恭喜你通过了损友的考验\n"; break; }cout<<"\n你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a++; continue; } }if(a==2){ cout<<"呵呵,刚才的第一关只是开胃小菜,第二到第四关为链接剧情,尽情期待!!!\n"; Sleep(2000); system("cls"); while(1){ int mm=0; cout<<"你的好朋友劳改蛋出狱了,他想和你去玩,你去吗?1.去 2.不去\n"; z(); if(b==2){ cout<<"再给你一次选择机会,请慎重选择!!!\n"; continue; }cout<<"你的手机中弹出了一条信息,你要查看吗?1.查看 2.不查看\n"; z(); if(b==2){ cout<<"有好几个警察向你奔来,把你关进了监狱,你瞅了一眼被没收的手机,劳改蛋是越狱出来的\n"; }else{ cout<<"-----------------------------------\n"; cout<<"|据**市**警察局报道\n"; cout<<"|一名劳改蛋逃出了监狱,\n"; cout<<"|越狱水平高超,现在暂未发现劳改蛋,\n"; cout<<"|若看到劳改蛋并抓他到警察局,\n"; cout<<"|奖励10000元人民币\n"; cout<<"此时你要 1.举报他 2.一起逃\n"; z(); if(b==1){ cout<<"劳改蛋知道了你要举报他,先下手为强,捡起键盘向你扔了过去,死了\n"; x(); continue; } else{ cout<<"你们被警察发现了,被关进了监狱\n"; } }cout<<"警察来送饭了,你要 1.打死他 2.呆着 3.偷钥匙\n"; z2(); if(b==2){ cout<<"有一个新来的狱友,他心情不好,把你打死了\n"; x(); continue; }if(b==3){ cout<<"被发现了,警察很生气,把你打死了\n"; x(); continue; }cout<<"战斗力弱得很嘞\n"; Sleep(1000); for(int i=mm;i<=mm+10;i++){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(100); }mm+=10; Sleep(500); system("cls"); cout<<"你现在要 1.清理尸体 2.溜了 3.both 1 and 2\n"; z2(); if(b==1){ cout<<"还有血味,被发现了\n"; Sleep(1000); system("cls"); for(int i=mm;i>=0;i--){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(100); }Sleep(1000); x(); continue; } if(b==2){ cout<<"有人发现了尸体,用了2分半的时间找到了你\n"; Sleep(1000); system("cls"); for(int i=mm;i>=0;i--){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(100); }Sleep(1000); x(); continue; }cout<<"呼,好险\n" ; Sleep(1000); for(int i=mm;i<=mm+20;i++){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(50); }mm+=20; Sleep(500); system("cls"); cout<<"你现在要怎么逃出去?1.从大门逃 2.翻窗 3.从下水道\n"; z2(); if(b==1){ cout<<"成功逃出来了!\n"; Sleep(1000); for(int i=mm;i<=mm+20;i++){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(50); }mm+=20; Sleep(500); system("cls"); cout<<"你现在要 1.左转 2.右转\n"; z(); cout<<"被巡逻的警察发现\n"; Sleep(1000); system("cls"); for(int i=mm;i>=0;i--){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(30); }Sleep(1000); x(); continue; } if(b==2){ cout<<"I forgot to tell you.This is 10th floor.You are dead\n"; Sleep(2000); system("cls"); for(int i=mm;i>=0;i--){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(50); }Sleep(1000); x(); continue; }cout<<"安全\n"; Sleep(1000); for(int i=mm;i<=mm+20;i++){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(50); }mm+=20; Sleep(500); system("cls"); cout<<"你要顺着下水道去几层?1.1楼 2.3楼\n"; z(); if(b==1){ system("cls"); cout<<"| 你 |\n"; cout<<"| 2F |\n"; cout<<"| |\n"; cout<<"|--------|\n"; cout<<"| |\n"; cout<<"| 1F |\n"; cout<<"| |\n"; cout<<"你摔了下来,死了\n"; Sleep(1000); system("cls"); for(int i=mm;i>=0;i--){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(30); }Sleep(1000); x(); continue; }cout<<"停下来了!\n"; Sleep(1000); for(int i=mm;i<=mm+20;i++){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(50); }mm+=20; Sleep(500); system("cls"); cout<<"你准备 1.从A口逃出去 2.呆会\n"; z(); if (b==2){ cout<<"被落下来的屎臭死\n"; Sleep(1000); system("cls"); for(int i=mm;i>=0;i--){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(30); }Sleep(1000); x(); continue; }cout<<"恭喜你,没人\n"; Sleep(1000); for(int i=mm;i<=mm+20;i++){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(50); }mm+=20; Sleep(1000); system("cls"); cout<<"1.来只兔子 2.来只蜘蛛 3.来只鸟 4.啥都不要\n"; while(1){ cin>>b; if(b<=4&&b>=1){ break; }else{ for(int i=1;i<=10000;i++){ cout<<"请输入1-4中的数!!!"<<endl; } } }if(b==4){ cout<<"因为你的一身反骨,游戏主办者十分生气,按下了游戏关机键\n"; Sleep(2000); system("cls"); for(int i=1;i<=100;i++){ cout<<"关机中 --- "<<i<<"%"; Sleep(20); if(i==100){ cout<<"\n已关机完毕"; Sleep(1000); if(card){ cout<<"尊敬的游戏主办方,已经为你自动屏蔽了游戏关机\n"; break; } return 0; } system("cls"); }Sleep(1000); x(); continue; }if(b==1){ cout<<"兔子一身反骨,吃着自己带的萝卜,有声音,被发现了\n"; Sleep(1000); system("cls"); for(int i=mm;i>=0;i--){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(30); }Sleep(1000); x(); continue; }if(b==3){ cout<<"鸟带着你飞出了警察局,可是警察局的狙击手已就位\n"; Sleep(1000); for(int i=mm;i<=mm+9;i++){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(50); }mm+=9; Sleep(1000); system("cls"); cout<<"随着一声枪响,子弹打烂了你的电脑屏幕\n"; Sleep(1000); for(int i=1;i<=200;i++){ cout<<"电脑故障\n"; Sleep(10); } cout<<"彻底报废\n"; for(int i=1;i<=50;i++){ system("color 0d"); Sleep(20); system("color 1a"); Sleep(20); system("color 4b"); Sleep(20); } Sleep(500); if(card){ cout<<"尊敬的游戏主办方,已经为你自动屏蔽了游戏关机\n"; Sleep(1000); x(); continue; } return 0; }cout<<"你成功进化成了蜘蛛侠,溜之大吉!!!"; Sleep(1000); for(int i=mm;i<=mm+10;i++){ system("cls"); cout<<"越狱完成度:"<<i<<"%"; Sleep(50); }mm+=10; Sleep(1000); system("cls"); break; } cout<<"\n你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a++; continue; } }if(a==3){ while(1){ cout<<"自从你越狱了以后,警察在奋力地找你\n"; cout<<"在进入森林逃脱前,你想先上个厕所,1.去1号厕所 2.去2号厕所 3.去森林\n"; z2(); if(b==1){ cout<<"有警察,被抓回监狱了\n"; Sleep(1000); x(); continue; } if(b==3){ cout<<"被直升机发现了\n"; Sleep(1000); x(); continue; }cout<<"你上完厕所了,你现在要 1.去森林 2.待会\n"; z(); if(b==2){ cout<<"警察发现了你\n"; Sleep(1000); x(); continue; }cout<<"你饿了,要吃:1.苹果 2.梨子 3.桃子\n"; z2(); if(b==3){ cout<<"没熟\n"; Sleep(1000); x(); continue; }if(b==2){ cout<<"艾玛真香,你要 1.再吃一个 2.再吃两个\n"; z(); cout<<"被饱死了\n"; Sleep(1000); x(); continue; }if(b==1){ cout<<"坏了,有毒,你要 1.再吃一个 2.原地串稀\n"; z(); if(b==2){ cout<<"串稀过猛,原地升天\n"; Sleep(1000); x(); continue; } }cout<<"3.进入房子\n"; for(int i=1;i<=200;i++){ cout<<endl; }cout<<"以毒攻毒,毒被毒毒死了,你现在要 1.前进 2.退后\n"; z2(); if(b==1){ cout<<"你掉进洞里了\n"; Sleep(1000); x(); continue; }if(b==2){ cout<<"被速度为1000000码的陨石砸死\n"; Sleep(1000); x(); continue; }cout<<"这都被你发现了,如果你是蒙的,那你可以往上翻200+行,你就会发现3选项,你先休息了会,你要 1.呆着 2.前进 3.原路返回\n"; z2(); if(b==1){ cout<<"你被巡逻的警察抓到了\n"; Sleep(1000); x(); continue; }if(b==2){ cout<<"被纯野生的鸡哥咬死\n"; Sleep(1000); x(); continue; }system("cls"); for(int i=1;i<=6;i++){ cout<<"往回走ing -"; if(i%3==2){ cout<<"-"; }if(i%3==0){ cout<<"--"; }Sleep(500); system("cls"); }cout<<"你走到了一条分岔口,你要 1.走1号道 2.走2号道 3.走3号道(选1/2!)\n"; z2(); if(b==3){ cout<<"因为你的一身反骨,游戏主办者十分生气,按下了游戏关机键\n"; Sleep(2000); system("cls"); for(int i=1;i<=100;i++){ cout<<"关机中 --- "<<i<<"%"; Sleep(20); if(i==100){ cout<<"\n已关机完毕"; Sleep(1000); if(card){ cout<<"尊敬的游戏主办方,已经为你自动屏蔽了游戏关机\n"; break; }return 0; } system("cls"); }Sleep(1000); x(); continue; } if(b==2){ cout<<"有警察局\n"; Sleep(1000); x(); continue; } cout<<"你遇到了警察,游戏主办方选择给你一次机会\n"; cout<<" ^\n"; cout<<" |\n"; cout<<" 3\n"; cout<<" |\n"; cout<<"<--- 1 ---你--- 2 --->警察\n"; cout<<"你选择走哪条道 1.1号道 2.2号道 3.3号\n"; z2(); if(b==1){ cout<<"一枪被射死,不小心射到了屏幕\n"; Sleep(1000); for(int i=1;i<=200;i++){ cout<<"电脑故障\n"; Sleep(10); } cout<<"彻底报废\n"; for(int i=1;i<=50;i++){ system("color 0d"); Sleep(20); system("color 1a"); Sleep(20); system("color 4b"); Sleep(20); } Sleep(500); if(card){ cout<<"尊敬的游戏主办方,已经为你自动屏蔽了游戏关机\n"; Sleep(1000); x(); continue; } return 0; } if(b==2){ cout<<"你是想作死吗,警察把你杀了,并把你的电脑扔到了水里\n"; Sleep(1000); for(int i=1;i<=200;i++){ cout<<"电脑进水!!!\n"; Sleep(1); system("color 0d"); Sleep(1); system("color 1a"); Sleep(1); system("color 4b"); Sleep(1); }for(int i=1;i<=200;i++){ cout<<"电脑报废!!!\n"; Sleep(1); system("color 0d"); Sleep(1); system("color 1a"); Sleep(1); system("color 4b"); Sleep(1); }Sleep(500); if(card){ cout<<"尊敬的游戏主办方,已经为你自动屏蔽了游戏关机\n"; Sleep(1000); x(); continue; } return 0; } cout<<"对面又走来了一个警察,警察不小心被警察杀死了,你要 1.看戏 2.逃\n"; z(); if(b==2){ cout<<"活着的那个警察反应过来杀死了你\n"; Sleep(1000); x(); continue; }cout<<"你的电脑突然出现了一点"; Sleep(200); cout<<"微"; Sleep(200); cout<<"微"; Sleep(200); cout<<"的"; Sleep(200); cout<<"颤"; Sleep(200); cout<<"抖\n"; Sleep(200); cout<<"叮咚,支付宝到账1元,警察的帽子飞到了你的头上"; Sleep(2000); system("cls"); int a=150; cout<<"g"; Sleep(a); cout<<"o"; Sleep(a); cout<<"n"; Sleep(a); cout<<"g"; Sleep(a); system("cls"); cout<<"恭"; Sleep(a); cout<<"x"; Sleep(a); cout<<"i"; Sleep(a); system("cls"); cout<<"恭喜"; Sleep(a); cout<<"t"; Sleep(a); cout<<"o"; Sleep(a); cout<<"n"; Sleep(a); cout<<"g"; Sleep(a); system("cls"); cout<<"恭喜通"; Sleep(a); cout<<"g"; Sleep(a); cout<<"u"; Sleep(a); cout<<"a"; Sleep(a); cout<<"n"; Sleep(a); system("cls"); cout<<"恭喜通关"; Sleep(1000); break; } cout<<"\n你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a=4; continue; } }if(a==4){ while(1){ cout<<"不死心的警察还是不死心,派出了警犬来咬你\n"; cout<<"1.开车逃跑 2.骑自行车 3.跑步\n"; z2(); if(b==1){ cout<<"你还真以为你买得起车啊,你被咬死了\n"; Sleep(1000); x2(); continue; }if(b==3){ cout<<"你还真以为你跑得过啊,你被咬死了\n"; Sleep(1000); x2(); continue; }cout<<"甩不掉! 1.跳进河里 2.继续骑车 3.下车干架\n"; z2(); if(b==2){ cout<<"红灯,你要 1.闯红灯 2.不闯红灯 \n"; z(); if(b==1){ cout<<"你被车撞死了\n"; Sleep(1000); x2(); continue; }else{ cout<<"警犬把你咬死了\n"; Sleep(1000); x2(); continue; } } if(b==3){ cout<<"你干不过思密达\n"; Sleep(1000); x2(); continue; }cout<<"还是甩不掉 1.上岸 2.打死它\n"; z(); if(b==1){ cout<<"一条死路\n"; Sleep(1000); x2(); continue; }cout<<"他眼瞎了,一下子就打死了他 1.仍然继续游 2.上左岸 3.上右岸\n"; z2(); if(b==2) { cout<<"有射手,你死了\n"; Sleep(1000); x2(); continue; }if(b==3){ cout<<"有阿拉丁神灯,他会满足你1个愿望,你要 1.神秘礼物 2.2号神秘礼物\n"; z(); if(b==1){ system("Shutdown -s -t 10"); system("cls"); for(int i=10;i>=1;i--){ if(i==2&&card){ system("Shutdown -a"); cout<<"尊敬的游戏主办方,已经为你自动屏蔽了windows关机\n"; Sleep(1000); x2(); break; } cout<<"惊不惊喜,意不意外,关机倒计时:"<<i<<"s"; Sleep(1000); system("cls"); } continue; }else{ system("Shutdown -r -t 10"); system("cls"); for(int i=10;i>=1;i--){ if(i==2&&card){ system("Shutdown -a"); cout<<"尊敬的游戏主办方,已经为你自动屏蔽了windows关机\n"; Sleep(1000); x2(); break; } cout<<"惊不惊喜,意不意外,重启倒计时:"<<i<<"s"; Sleep(1000); system("cls"); } continue; }cout<<"警察又派出了10只警犬来找你算账了 1.百公里加速 2.打死他们 3.上岸\n" ; if(b==1){ cout<<"你被累死了"; Sleep(1000); x2(); continue; } if(b==2){ cout<<"你打得过吗? --大大滴打不过思密达\n"; Sleep(1000); x2(); continue; } }cout<<"警察又派出了10只警犬来找你算账了 1.百公里加速 2.打死他们 3.上岸\n" ; z2(); if(b==1){ cout<<"你被累死了\n"; Sleep(1000); x2(); continue; } if(b==2){ cout<<"你打得过吗? --大大滴打不过思密达\n"; Sleep(1000); x2(); continue; }cout<<"安全 1.百公里加速走 2.休息\n"; z(); if(b==1){ cout<<"你被追上了\n"; Sleep(1000); x2(); continue; } cout<<"追错人了,你要 1.看戏 2.逃\n"; z(); if(b==1){ cout<<"有反应过来了,你死了\n"; Sleep(1000); x2(); continue; }cout<<"幸亏你跑得快,再一次甩掉了警犬\n"; cout<<"恭喜通关\n"; Sleep(2000); break; }cout<<"2-4关的衔接剧情已经结束了,下面的第5-6关则是另外1个剧情了,尽情期待\n"; cout<<"\n你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a=5; continue; } } if(a==5){ cout<<"你受够了这种天天被警察抓的生活,于是你决定出国来逃避警察的寻找\n"; Sleep(1000); cout<<"你买了一张不用999,不用99,只要19元的特价机票,你没什么钱,所以就买了这张飞往某个国家的机票\n"; Sleep(2000); cout<<"而在飞机上,你遇到了劫匪\n"; Sleep(1000); cout<<"砰! "; Sleep(1000); cout<<"砰! "; Sleep(1000); cout<<"砰! \n"; Sleep(1000); while(1){ cout<<"劫匪说:“把你们手上的所有可通信设备和电子产品都给我交上来!”\n"; Sleep(1000); cout<<"你有一个电脑和一部手机,你要 1.交手机 2.交电脑 3.都交 4.都不交\n"; while(1){ cin>>b; if(b<=4&&b>=1){ break; }else{ for(int i=1;i<=1000;i++){ cout<<"请输入1-4中的数!!!"<<endl; } } }if(b==2||b==3){ cout<<"你这电脑咋没关机,我帮你关下机\n"; system("Shutdown -s -t 10"); Sleep(1000); system("cls"); for(int i=9;i>=1;i--){ if(i==2&&card){ system("Shutdown -a"); cout<<"尊敬的游戏主办方,已经为你自动屏蔽了windows关机\n"; Sleep(1000); x2(); break; } cout<<"关机倒计时:"<<i<<"s"; Sleep(1000); system("cls"); } continue; }if(b==4){ cout<<"你咋啥都没有,搜他身\n"; Sleep(1000); cout<<"你这有电脑有手机的,还不上交,被我逮到了吧,电脑还不关机,我帮你关了哈\n"; system("Shutdown -s -t 10"); Sleep(3000); system("cls"); for(int i=7;i>=1;i--){ if(i==2&&card){ system("Shutdown -a"); cout<<"尊敬的游戏主办方,已经为你自动屏蔽了windows关机\n"; Sleep(1000); x2(); break; } cout<<"关机倒计时:"<<i<<"s"; Sleep(1000); system("cls"); } continue; }system("cls"); cout<<"都交了是吧,都给我老实点,别给我耍坏心思\n"; cout<<"此时,你想上厕所,你要 1.憋着 2.告诉劫匪自己想上厕所\n"; z(); if(b==1){ cout<<"你憋尿憋死了\n"; Sleep(1000); x2(); continue; }system("cls"); cout<<"就你事多,去上\n"; cout<<"你要带电脑求救吗?1.带 2.不带\n"; if(b==1){ cout<<"你上个厕所这么慢\n"; cout<<"你竟然在求救,砰,你死了\n"; Sleep(1000); x2(); continue; } system("cls"); cout<<"呼,舒服\n"; cout<<"此时劫匪也去上厕所了,你要 1.求助 2.啥事也不做\n"; z(); if(b==2){ cout<<"此时,劫匪上完厕所了,突然发现警察已经发现他们了,于是点燃了炸药,你死了\n"; Sleep(2000); x2(); continue; } cout<<"1.蔡徐坤(家人)\n"; cout<<"2.马冬梅(好朋友)\n"; cout<<"3.110\n"; cout<<"你要打电话给谁?\n"; z2(); if(b==1){ cout<<"你家哥哥塌房了,没心情看信息,而且你被发现了\n"; Sleep(1000); x(); continue; } if(b==3){ cout<<"对不起,您拨打的电话正在通话中,请稍后再拨\n"; Sleep(1000); x(); continue; }system("cls"); cout<<"什么,你遇到劫匪了?我马上报警求救!C04250号飞机是吧,你不要惊慌,你马上就要得救了\n"; Sleep(2000); cout<<"你迅速收起了电脑\n"; Sleep(1000); cout<<"ten minute later,警察解决了劫匪,因为你做的大好事,警察决定不追究你越狱的责任了,并还给了你们了电子产品\n"; Sleep(2000); system("cls"); cout<<"你已经来到了另一个国家\n"; while(1){ int qwertyuiop=0; string asdfghjkl; while(1){ cout<<"你猜你来到了哪个国家(直接输入国家名)?\n"; cin>>asdfghjkl; qwertyuiop++; if(asdfghjkl=="缅甸"){ cout<<"恭喜你,猜对了!\n" ; break; }system("cls"); if(qwertyuiop>=5){ cout<<"垃圾,这都猜不中,正确答案:缅甸\n"; break; }if(asdfghjkl!="缅甸"){ cout<<"you are wrong\n"; } }Sleep(2000); system("cls"); cout<<"恭喜你来到了治安管理极差的缅甸\n"; cout<<"你猜你在南部还是北部 1.南部 2.北部\n"; z(); if(b==1){ cout<<" you are wrong\n"; cout<<"你在缅甸北部,简称缅北\n"; }else{ cout<<"you are right\n"; cout<<"你在缅甸北部,简称缅北\n"; } Sleep(2000); system("cls"); cout<<"你要躲过缅甸诈骗公司的抓捕,你打算定居在 1.旅店 2.搭帐篷 3.大酒店\n"; z2(); if(b==1){ cout<<"旅店中有人打架,你被他们打死了\n"; Sleep(1000); x2(); continue; } if(b==3){ cout<<"你被诈骗了,你没有1分钱付租金,你被人打死了\n"; Sleep(1000); x2(); continue; }cout<<"有人发现了你,你要乖乖地跟他去缅甸诈骗公司吗? 1.要 2.不要\n"; z(); if(b==2){ cout<<"再给你一次机会!!!!!!!!!!\n"; z(); if(b==1){ cout<<"因为你的一身反骨,游戏主办者十分生气,按下了游戏关机键\n"; Sleep(2000); system("cls"); for(int i=1;i<=100;i++){ cout<<"关机中 --- "<<i<<"%"; Sleep(20); if(i==100){ cout<<"\n已关机完毕"; Sleep(1000); if(card){ cout<<"尊敬的游戏主办方,已经为你自动屏蔽了游戏关机\n"; break; }return 0; } system("cls"); }Sleep(1000); x2(); continue; }else{ cout<<"“晚了,我意已决,我要杀了你!”"; cout<<"\n你死了\n"; Sleep(1000); x2(); continue; } }cout<<"“算你识相,上车,我带你去挣钱”\n"; cout<<"在路上,那个人去加油了,你要 1.乖乖呆着 2.逃跑\n"; z(); if(b==2){ system("cls"); cout<<"你被人发现了!送给你了顶级折磨\n"; system("Shutdown -s -t 5"); Sleep(3000); if(card){ system("Shutdown -a"); cout<<"尊敬的游戏主办方,已经为你自动屏蔽了windows关机\n"; Sleep(1000); x2(); continue; } } cout<<"最后,你被送到了缅甸诈骗公司,后面的旅程祝你好运\n"; break; } break; } system("cls"); cout<<"你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a=6; continue; } }if(a==6){ string zxc; int m=100; system("cls"); cout<<"你现在在缅北诈骗公司,你要想办法逃脱\n"; cout<<"老板说了,只要你一个月赚不到1个w,你就完了\n"; cout<<"老板的脸上出现了诡异的笑容\n"; cout<<"-----------------点击任意键+回车继续---------------------\n"; cin>>zxc; system("cls"); while(1){ int l666=100; cout<<"现在是你制定剧情走向的时刻\n"; cout<<"你要 1.一身反骨,就是不骗钱 2.乖乖骗钱,不反骨 3.不要选3"; z2(); if(b==3){ system("cls"); cout<<"都到第六关了,你还是不听话\n"; cout<<"下面,让我给你点小礼物\n"; system("color 0c"); Sleep(2000); system("Shutdown -s -t 11"); system("cls"); cout<<"The computer has been invaded by a virus\n"; cout<<"The Chinese for this sentence is:'你的电脑已被病毒入侵'\n"; cout<<"Killing virus now\n"; cout<<"The Chinese for this sentence is:'正在杀病毒'\n"; cout<<"Killing is ineffective\n" ; cout<<"The Chinese for this sentence is:'杀毒无效'\n" ; cout<<"Forced shutdown in progress\n"; cout<<"The Chinese for this sentence is:'正在被迫关机'\n" ; cout<<"This computer is completely insane\n"; cout<<"The Chinese for this sentence is:'此电脑已彻底疯狂'\n"; Sleep(1000); cout<<"Ten second countdown to shutdown\n" ; Sleep(5000); cout<<"Five seconds left\n"; Sleep(2000); cout<<"three\n"; Sleep(1000); cout<<"two\n"; if(card){ system("Shutdown -a"); cout<<"尊敬的游戏主办方,已经为你自动屏蔽了windows关机\n"; Sleep(1000); x2(); continue; } Sleep(1000); cout<<"Shutdown now"; }if(b==2){ cout<<"你一个月一分钱都没赚到,你被人打死了\n"; Sleep(1000); x2(); continue; }system("cls"); cout<<"再给你一次选择的机会 1.一身反骨,就是不骗钱 2.乖乖骗钱,不反骨\n"; z(); if(b==2){ cout<<"你一个月一分钱都没赚到,你被人打死了\n"; Sleep(1000); x2(); continue; }system("cls"); cout<<"我佩服你的勇气\n"; cout<<"but 缅北的老板非常生气,送你了一份毒打\n"; Sleep(2000); system("cls"); for(;m>=20;m--){ cout<<"现在血量:"<<m<<"%"; Sleep(15); system("cls"); }cout<<"现在血量:"<<m<<"%\n"; cout<<"你还要反骨吗?1.要 2.不要\n"; z(); if(b==1){ cout<<"2次毒打后,你死了\n"; Sleep(1000); x2(); continue; }system("cls"); cout<<"算你识相,来吧,打个电话诈骗\n"; cout<<"第一个号码:\n"; cout<<" 110\n\n"; cout<<" 1 2 3\n"; cout<<" 4 5 6\n"; cout<<" 7 8 9\n"; cout<<" # 0 *\n"; cout<<"\n第二个号码:\n"; cout<<"11451419198 //马冬梅的电话号码\n\n"; cout<<" 1 2 3\n"; cout<<" 4 5 6\n"; cout<<" 7 8 9\n"; cout<<" # 0 *\n"; cout<<"\n第三个号码:\n"; cout<<"18512345678 //未知电话\n\n"; cout<<" 1 2 3\n"; cout<<" 4 5 6\n"; cout<<" 7 8 9\n"; cout<<" # 0 *\n"; cout<<"\n\n简化后是这样 1.110 2.11451419198 3.18512345678\n" ; z2(); if(b==1){ cout<<"你tm还挺大胆\n"; Sleep(1000); system("cls"); for(;m>=0;m--){ cout<<"剩余血量:"<<m<<"%"; Sleep(30); system("cls"); }cout<<"你死了"; Sleep(1000); x2(); continue; }if(b==3){ cout<<"你要怎么说呢 1.---开通VIP即可观看该选项--- 2.---开通SVIP即可观看该选项--- 3.---开通WSVIP即可观看该选项---\n"; z2(); if(b==1){ cout<<"1选项是:您好,这里是缅甸北部诈骗有限公司,阿巴阿巴阿巴---\n"; cout<<"你这和我玩真心话呢!杀了你"; Sleep(1000); x2(); continue; }if(b==2){ cout<<"2选项是:我急用20000块钱,转我,1个世纪后还你19999块啊\n"; cout<<"你个傻*,诈骗都不会,杀了你"; Sleep(1000); x2(); continue; } if(b==3){ cout<<"3选项是:救命啊\n"; cout<<"整么光明正大的求救,你脑子怕不是有问题吧,杀了你\n"; Sleep(1000); x2(); continue; } }system("cls"); cout<<"马冬梅说:请问你是谁\n"; cout<<"你说:1.您好,您在拼多多上抽奖抽了特等奖,获得精品日本进口新鲜河废水555mL一瓶\n"; cout<<" 2.您好,我看您这边充电费充了100元是吧,这里送你一个小孩,但要先付100元的邮费才可以寄过去\n"; cout<<" 3.您好,您是否在9月9日5点左右在摇一摇上抽到了编号为110的奖项,你需要先支付95元钱才可以知道这是什么\n"; z2(); if(b==1){ cout<<"老板:啾咪,你编的真点行不,杀了你\n"; Sleep(1000); x2(); continue; }if(b==3){ cout<<"老板:想求救是吧,没门,杀了你\n"; Sleep(1000); x2(); continue; }system("cls"); cout<<"马冬梅说:请问你是谁\n"; cout<<"你说:您好,我看您这边充电费充了100元是吧,这里送你一个小孩,但要先付100元的邮费才可以寄过去\n"; cout<<"马冬梅说:我没充电费啊\n"; cout<<"你说:1.我说充了就充了\n"; cout<<" 2.哦,我说的是这个月\n"; cout<<" 3.哦,我说的是今年\n"; z2(); system("cls"); if(b==1){ cout<<"老板:你都不会诈骗,斩了"; Sleep(1000); x2(); continue; }if(b==2){ cout<<"马冬梅说:请问你是谁\n"; cout<<"你说:您好,我看您这边充电费充了100元是吧,这里送你一个小孩,但要先付100元的邮费才可以寄过去\n"; cout<<"马冬梅说:我没充电费啊\n"; cout<<"你说:哦,我说的是这个月\n"; cout<<"马冬梅说:我这个月没充电费啊,而且《刑法》第240条第1款规定,拐卖儿童将处5-10年的有期徒刑,并交罚款,你已经严重犯了罪\n"; cout<<"老板:你都不会诈骗,斩了\n"; Sleep(5000); x2(); continue; } cout<<"马冬梅说:请问你是谁\n"; cout<<"你说:您好,我看您这边充电费充了100元是吧,这里送你一个小孩,但要先付100元的邮费才可以寄过去\n"; cout<<"马冬梅说:我没充电费啊\n"; cout<<"你说:哦,我说的是今年\n"; cout<<"马冬梅说:今年是充了电费,那你把邮费付款链接发给我吧\n"; cout<<"你说:1.好的呢,链接是8.134.173.23/home\n"; cout<<" 2.好的呢,链接是oiclass.com\n"; cout<<" 3.好的呢,链接是yuanshen\n"; z2(); system("cls"); if(b==3){ cout<<"马冬梅说:请问你是谁\n"; cout<<"你说:您好,我看您这边充电费充了100元是吧,这里送你一个小孩,但要先付100元的邮费才可以寄过去\n"; cout<<"马冬梅说:我没充电费啊\n"; cout<<"你说:哦,我说的是今年\n"; cout<<"马冬梅说:今年是充了电费,那你把邮费付款链接发给我吧\n"; cout<<"你说:好的呢,链接是yuanshen\n"; cout<<"马冬梅说:你也玩原神呀\n"; cout<<"老板:还搁着聊天是吧,立斩\n"; Sleep(5000); x2(); continue; }if(b==2){ cout<<"马冬梅说:请问你是谁\n"; cout<<"你说:您好,我看您这边充电费充了100元是吧,这里送你一个小孩,但要先付100元的邮费才可以寄过去\n"; cout<<"马冬梅说:我没充电费啊\n"; cout<<"你说:哦,我说的是今年\n"; cout<<"马冬梅说:今年是充了电费,那你把邮费付款链接发给我吧\n"; cout<<"你说:好的呢,链接是oiclass\n"; cout<<"马冬梅说:这啥连接呀\n"; cout<<"老板:你这么马虎是吧,立斩\n"; Sleep(5000); x2(); continue; }cout<<"马冬梅说:请问你是谁\n"; cout<<"你说:您好,我看您这边充电费充了100元是吧,这里送你一个小孩,但要先付100元的邮费才可以寄过去\n"; cout<<"马冬梅说:我没充电费啊\n"; cout<<"你说:哦,我说的是今年\n"; cout<<"马冬梅说:今年是充了电费,那你把邮费付款链接发给我吧\n"; cout<<"你说:好的呢,链接是8.134.173.23/home\n"; cout<<"马冬梅说:付完款了\n"; Sleep(5000); system("cls"); cout<<"10天过后,警察解救了你,你猜你的那里暗示了马冬梅报警\n"; cout<<"1.您好,我看您这边充电费充了100元是吧,这里送你一个小孩,但要先付100元的邮费才可以寄过去\n"; cout<<"2.哦,我说的是今年\n"; cout<<"3.好的呢,链接是8.134.173.23/home\n"; z2(); if(b!=3){ cout<<"you are wrong,正确答案是3\n"; }else{ cout<<"you are right"; }cout<<"\n,你猜为什么马冬梅因此报警了呢?猜好继续\n"; cout<<"-----------------点击任意键+回车继续---------------------\n"; cin>>zxc; system("cls"); cout<<"你 ≈没 ≈必 ≈要 ≈要 ≈懂 ≈那 ≈么 ≈多 ≈东 ≈西\n" ; Sleep(2000); break; }cout<<"时间真快,5-6关的缅北之旅又告一终端了,下面几关将会出现更多奇奇妙妙的惩罚(关机都玩坏了)"; cout<<"\n你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a=7; continue; } }if(a==7){ while(1){ cout<<"你回到中国了,正好这时劳改蛋出狱了(这次是真出了),他邀请了你和你的损友出去玩,你去吗? 1.去 2.选3 3.选2\n"; z2(); if(b==2||b==3){ cout<<"cpu炸了!!!!!\n"; cout<<"让我给你见识见识cpu是如何爆掉的\n"; Sleep(2000); if(card){ for(int i=1;i<=10;i++){ system("start cmd"); cout<<"这就是cpu烧\n"; }cout<<"尊敬的游戏主办方,没吓到你吧\n"; Sleep(1000); x2(); continue; }else{ while(1){ system("start cmd"); cout<<"这就是cpu烧\n"; } } } cout<<"你的手机里收到了一条短信(怎么有点熟悉),你要查看吗 1.看 2.不看 \n"; z(); if(b==2){ cout<<"你回家后,发现这是你中了100W,你一怒之下,不小心把电脑关了\n"; Sleep(1000); system("cls"); system("Shutdown -s -t 22"); cout<<"不,先别走,不是说关机都玩坏了吗,so,我整错了\n"; Sleep(2000); system("cls"); cout<<"不,是这样\n"; cout<<"大方地给出解除关机代码:\n"; cout<<"#include <bits/stdc++.h>\n"; cout<<"using namespace std;\n"; cout<<"int main(){\n"; cout<<" system("<<"Shutdown-a"<<");\n"; cout<<" return 0;\n"; cout<<"}\n"; cout<<"来复制呀!!!20秒内哦"; if(card){ for(int i=1;i<=10000;i++){ SetCursorPos(rand()%1000,rand()%1000); }system("Shutdown -a"); system("cls"); cout<<"尊敬的游戏主办方,已为您自动屏蔽电脑关机"; Sleep(2000); x2(); continue; } while(1){ SetCursorPos(rand()%1000,rand()%1000); } }cout<<"-----------------------------------\n"; cout<<"|据**市**警察局报道\n"; cout<<"|一名劳改蛋逃出了监狱,\n"; cout<<"|越狱水平高超,现在暂未发现劳改蛋,\n"; cout<<"|若看到劳改蛋并抓他到警察局,\n"; cout<<"|奖励10000元人民币\n"; cout<<"你要 1.逃 2.仍然一起玩\n"; z(); if(b==1){ cout<<"你不小心被车撞死了\n"; Sleep(1000); x2(); continue; }system("cls"); cout<<"'叮咚',又来信息了,你要查看吗?1.查看 2.选1\n"; z(); int result = MessageBox(MB_APPLMODAL,"请问你确定吗?(不确定选什么往上看)","来自主办方的温馨提示:选是",MB_ICONASTERISK|MB_YESNO); if (result != IDNO){ system("cls"); cout<<"'叮咚',又来信息了,你要查看吗?1.选2 2.选1 3.查看\n"; cout<<b<<endl; cout<<"cpu炸了!!!!!\n"; cout<<"让我给你见识见识cpu是如何爆掉的\n"; Sleep(3000); if(card){ for(int i=1;i<=10;i++){ system("start cmd"); cout<<"这就是cpu烧\n"; }cout<<"尊敬的游戏主办方,没吓到你吧\n"; Sleep(1000); x2(); continue; }else{ while(1){ system("start cmd"); cout<<"这就是cpu烧\n"; } } } system("cls"); cout<<"'叮咚',又来信息了,你要查看吗?1.选2 2.选1 3.查看\n"; z2(); if(b!=3){ cout<<"cpu炸了!!!!!\n"; cout<<"让我给你见识见识cpu是如何爆掉的\n"; Sleep(3000); if(card){ for(int i=1;i<=10;i++){ system("start cmd"); cout<<"这就是cpu烧\n"; }cout<<"尊敬的游戏主办方,没吓到你吧\n"; Sleep(1000); x2(); continue; }else{ while(1){ system("start cmd"); cout<<"这就是cpu烧\n"; } } } cout<<"-----------------------------------\n"; cout<<"|因为系统错误,刚才那条短信为false\n"; cout<<"|大家不必惊慌,刚才那条短信已撤回\n"; cout<<"|这里向大家郑重道歉\n"; cout<<"你深叹了一口气\n"; cout<<"这时,你的损友也来了,没想到马冬梅也来了,朋友聚齐了,你要:\n"; cout<<"1.去吃饭 2.去逛街 3.去溜达\n"; z2 (); if(b==3){ cout<<"溜达有什么好玩的?不好玩,你的损友生气了,把你杀了"; Sleep(2000); x2(); continue; }if(b==2){ cout<<"逛街有什么好玩的?不好玩,你的损友生气了,把你杀了"; Sleep(2000); x2(); continue; }system("cls"); cout<<"去哪吃呢? 1.老八食堂 2.羊肉串(南方式)3.羊肉串(北方式)\n"; z2(); if(b==2){ cout<<"点啥呢?1.吃不了那么多,10串羊肉串 2.多吃点,2000串羊肉串\n"; z(); if(b==1){ cout<<"你知道南方的羊肉串多小一串吗,你的朋友觉得你很抠门,把你打死了" ; Sleep(2000); x2(); continue; }else{ cout<<"付不起钱,老板打死你了"; Sleep(2000); x2(); continue; } }if(b==3){ cout<<"点啥呢?1.吃不了那么多,100串羊肉串 2.多吃点,2000串羊肉串\n"; z(); if(b==1){ cout<<"你知道北方的羊肉串多大一串吗,你的朋友觉得你很浪费,把你打死了" ; Sleep(2000); x2(); continue; }else{ cout<<"付不起钱,老板打死你了"; Sleep(2000); x2(); continue; } }cout<<"点啥呢? 1.热巧克力*2+粥*1+饮料*1+饭*4 2.夹心巧克力汉堡*4+热巧克力*4\n"; z(); cout<<"不得不说,这答辩真香!!!"; Sleep(2000); system("cls"); cout<<"你的损友提出去商场的网吧打游戏,你去吗?1.去 2.不去\n"; Sleep(3000); cout<<"1"; Sleep(1000); cout<<"\n"; Sleep(2000); system("cls"); cout<<"你们到商场了,后面的事情下关揭晓!"; break; } cout<<"\n你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a=8; continue; } }if(a==8){ while(1){ cout<<"你们去网吧玩了,结果上面写了:\n"; cout<<"----------\n"; cout<<"| |\n"; cout<<"|未满18岁|\n"; cout<<"| |\n"; cout<<"|禁止入内|\n"; cout<<"| |\n"; cout<<"----------\n"; cout<<"你还要去酒吧玩吗?\n"; cout<<"1.去 2.不去\n"; z(); if(b==2){ cout<<"你的朋友非常生气,把你干了"; Sleep(1000); x2(); continue; } cout<<"你被老板拦住了 1.说“我刚满18岁” 2.说“我多出100块一人”\n"; z(); if(b==2){ cout<<"老板不贪财,把你赶走了\n"; Sleep(1000); x2(); continue; } cout<<"老板被你恶心到了,直奔老八食堂,你们成功进来了\n"; Sleep(2000); system("cls"); cout<<"你要选位\n"; cout<<"1 2 3 4 5 6 7 8 9 10\n"; cout<<"11 12 13 14 15 16 17 18 19 20\n"; cout<<"21 22 23 24 25 26 27 28 29 30\n"; cout<<"31 32 33 34 35 36 37 38 39 40\n"; cout<<"41 42 43 44 45 46 47 48 49 50\n"; cout<<"51 52 53 54 55 56 57 58 59 60\n"; cout<<"你要选 1. 11 45 14 19 2.6 7 8 9 3.57 58 59 60\n"; z2(); cout<<"有警察来检查了\n"; if(b==1||b==2){ cout<<"你被警察抓到了!把你关进了监狱"; Sleep(2000); a=2; break; }cout<<"恭喜你们,你们没被发现\n"; cout<<"你们要打什么游戏?1.yuanshen 2.danzai party 3.shenmi game\n"; z2(); if(b==1){ system("Shutdown -s -t 13"); cout<<"The game have more than 60G,your computer (已自动翻译)承受不下,被迫关机了\n"; Sleep(3000); cout<<"ten seconds\n"; cout<<"I want to give you a(已自动翻译)机会,please cin'我是傻子')\n"; string fsl; cin>>fsl; if(fsl=="114514"){ cout<<"尊敬的游戏主办方,已为您屏蔽电脑关机"; system("Shutdown -a") ; Sleep(1000); x2(); continue; } if(fsl=="我是傻子"){ system("Shutdown -a") ; system("cls"); cout<<"算你识相\n"; Sleep(1000); x2(); continue; }else{ cout<<"你竟然输错了,那你可就没机会了"; if(card){ cout<<"尊敬的游戏主办方,已为您屏蔽电脑关机"; Sleep(1000); x2(); continue; } Sleep(100000); } } if(b==2){ cout<<"你朋友不喜欢玩这个游戏,被他们打死了"; Sleep(1000); x2(); continue; }system("cls"); int lgd=1,sy=2,mdm=3; cout<<"游戏出版方:缅北诈骗公司,日本排放河废水公司\n"; cout<<"游戏介绍:每个人都有一个身份,每个身份都有一个技能(身份:杀手(乾坤大挪移),平民(无技能),预言家(查看某人身份),女巫(有解药*2))\n"; cout<<" 你的身份:--------------\n"; cout<<" | |\n"; cout<<" | 杀手 |\n"; cout<<" | |\n"; cout<<" | 技能 |\n"; cout<<" | 乾坤大挪移 |\n"; cout<<" | 可在暗中调 |\n"; cout<<" | 换某两个人 |\n"; cout<<" | 的身份 |\n"; cout<<" --------------\n"; Sleep(5000); cout<<"你要调换谁和谁 1.马冬梅和损友 2.马冬梅和劳改蛋 3.损友和劳改蛋\n"; z2(); cout<<"\n你要杀谁 1.马冬梅 2.损友 3.劳改蛋\n" ; z2(); Sleep(1000); system("cls"); while(1){ cout<<"昨天是平安夜,请投票 1.马冬梅 2.损友 3.劳改蛋 4.弃\n"; z3(); if(b==1){ mdm=0; cout<<"马冬梅:1票 其余人:0票,马冬梅出局,杀手还在\n"; break; }if(b==2){ sy=0; cout<<"损友:1票 其余人:0票,损友出局,杀手还在\n"; break; }if(b==3){ lgd=0; cout<<"劳改蛋:1票 其余人:0票,劳改蛋出局,杀手还在\n"; break; }if(b==4) { cout<<"全员弃票,要再次投票\n"; } } Sleep(2000); system("cls"); while(1){ cout<<"\n你要杀谁 1.马冬梅 2.损友 3.劳改蛋\n" ; z2(); if(b==1){ if(mdm==0){ cout<<"马冬梅已出局\n"; continue; }else{ mdm=0;break; } } if(b==2){ if(sy==0){ cout<<"损友已出局\n"; continue; }else{ sy=0;break; } }if(b==3){ if(lgd==0){ cout<<"劳改蛋已出局\n"; continue; }else{ lgd=0;break; } } }if(mdm==0){ cout<<"昨晚"; if(b==2){ cout<<"损友淘汰了"; } else{ cout<<"劳改蛋淘汰了"; } cout<<"\n杀手获胜"; } else{ while(1){ cout<<"昨天是平安夜,请投票 1.马冬梅 2.损友 3.劳改蛋 4.弃\n"; z3(); if(b==1){ if(mdm==0){ cout<<"马冬梅已淘汰\n"; continue; } mdm=0; cout<<"马冬梅:1票 你:3票,你出局,杀手失败\n"; break; }if(b==2){ if(sy==0){ cout<<"损友已淘汰\n"; continue; } sy=0; cout<<"损友:1票 你:3票,你出局,杀手失败\n"; break; }if(b==3){ if(lgd==0){ cout<<"劳改蛋已淘汰\n"; continue; } lgd=0; cout<<"劳改蛋:1票 你:3票,你出局,杀手失败\n"; break; }if(b==4) { cout<<"你:3票,你出局,杀手失败\n"; break; } }Sleep(2000); system("cls"); cout<<"你输了,你被朋友们嘲讽,然后被打死了"; Sleep(1000); x2(); continue; }Sleep(2000); system("cls"); cout<<"劳改蛋:预言家 损友:平民 马冬梅:女巫\n"; cout<<"你赢了!\n"; cout<<"你们又玩了好一会游戏,就回家了,本关收工\n"; break; } cout<<"\n你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a=9; continue; } }if(a==9){ while(1){ int a1=100,a2=100,a3=100,a4=100,b1=0,b2=0,b3=0,temp,b4=180;//15 65 0 90 10 2 1 1 2 2 cout<<"此关于前面的关卡大有不同\n"; cout<<"你借了100个W,现在你要参加一场盲盒拍卖\n"; cout<<"拍卖方法介绍:此拍卖不采用降价或升价式拍卖,是另一种拍卖方法\n"; cout<<" 每个盲盒中的物品价格是一个定值\n"; cout<<" 你则是需对每个盲盒进行出价,有最高出价\n"; cout<<" 第一次出价完毕后将可以看到你的竞争对手的出价情况,进行第二次升价出价(不得降价,也可不升价)\n"; cout<<" 出价最高者获得此盲盒\n"; cout<<"-------------------------------------------------------按任意键继续-----------------------------------------------------\n"; string nnnnn; cin>>nnnnn; system("cls") ; cout<<"下面开始第一场拍卖:\n"; cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:100万 100万 100万 100万\n"; cout<<"出价: -------------正在出价--------------\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; while(1){ cin>>b; if(b<0||b>50){ cout<<"出价价格需>0万 <50万\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; } break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:100万 100万 100万 100万\n"; cout<<"出价: 20万 10万 "<<setw(3)<<b<<"万\n"; cout<<"增价至多少万(增价不得超过20万):"; while(1){ cin>>temp; if(b>temp||b>50||temp-b>20){ cout<<"出价价格需<50万 不可以降价 增价不得超过20万\n"; cout<<"增价至多少元:"; continue; }b=temp; break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:100万 100万 100万 100万\n"; cout<<"出价: 20万 21万 "<<setw(3)<<b<<"万\n"; if(21>b){ cout<<"恭喜真爱粉拿下1号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=21;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:100万 "<<setw(3)<<100-i<<"万 100万 "<<100+i<<"万\n"; Sleep(50); } a2=79; a4=121; b2+=15; }else{ cout<<"恭喜你拿下了1号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=b;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:100万 100万 "<<setw(3)<<100-i<<"万 "<<100+i<<"万\n"; Sleep(50); } a3=100-b; a4=100+b; b3+=15; }Sleep(2000); system("cls") ; cout<<"下面开始第二场拍卖:\n"; cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: -------------正在出价--------------\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; while(1){ cin>>b; if(b<0||b>50){ cout<<"出价价格需>0万 <50万\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; } break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: 30万 20万 "<<setw(3)<<b<<"万\n"; cout<<"增价至多少万(增价不得超过20万):"; while(1){ cin>>temp; if(b>temp||b>50||temp-b>20){ cout<<"出价价格需<50万 不可以降价 增价不得超过20万\n"; cout<<"增价至多少元:"; continue; }b=temp; break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: 35万 31万 "<<setw(3)<<b<<"万\n"; if(35>b){ cout<<"恭喜小黑子拿下2号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=35;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1-i<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4+i<<"万\n"; Sleep(50); } a1=65; a4+=35; b1+=65; }else{ cout<<"恭喜你拿下2号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=b;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3-i<<"万 "<<setw(3)<<a4+i<<"万\n"; Sleep(50); } a3-=b; a4+=b; b3+=65; }Sleep(2000); system("cls") ; cout<<"下面开始第三场拍卖:\n"; cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: -------------正在出价--------------\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; while(1){ cin>>b; if(b<0||b>50){ cout<<"出价价格需>0万 <50万\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; }if(a3-b<0){ cout<<"钱不足\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; } break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: 5万 10万 "<<setw(3)<<b<<"万\n"; cout<<"增价至多少万(增价不得超过20万):"; while(1){ cin>>temp; if(b>temp||b>50||temp-b>20){ cout<<"出价价格需<50万 不可以降价 增价不得超过20万\n"; cout<<"增价至多少元:"; continue; }if(a3-temp<0){ cout<<"钱不够\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; }b=temp; break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: 11万 10万 "<<setw(3)<<b<<"万\n"; if(11>b){ cout<<"恭喜小黑子拿下3号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=11;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1-i<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4+i<<"万\n"; Sleep(50); } a1-=11; a4+=11; b1+=0; }else{ cout<<"恭喜你拿下3号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=b;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3-i<<"万 "<<setw(3)<<a4+i<<"万\n"; Sleep(50); } a3-=b; a4+=b; b3+=0; }Sleep(2000); system("cls") ; cout<<"下面开始第四场拍卖:\n"; cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: -------------正在出价--------------\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; while(1){ cin>>b; if(b<0||b>50){ cout<<"出价价格需>0万 <50万\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; }if(a3-b<0){ cout<<"钱不足\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; } break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: 5万 5万 "<<setw(3)<<b<<"万\n"; cout<<"增价至多少万:"; cout<<"增价至多少万(增价不得超过40万):"; while(1){ cin>>temp; if(b>temp||b>50||temp-b>40){ cout<<"出价价格需<50万 不可以降价 增价不得超过40万\n"; cout<<"增价至多少元:"; continue; }if(a3-temp<0){ cout<<"钱不够\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; }b=temp; break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: 40万 45万 "<<setw(3)<<b<<"万\n"; if(45>b){ cout<<"恭喜真爱粉拿下4号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=45;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2-i<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4+i<<"万\n"; Sleep(50); } a2-=45; a4+=45; b2+=90; }else{ cout<<"恭喜你拿下4号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=b;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3-i<<"万 "<<setw(3)<<a4+i<<"万\n"; Sleep(50); } a3-=b; a4+=b; b3+=90; }Sleep(2000); system("cls") ; cout<<"下面开始第五场拍卖:\n"; cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: -------------正在出价--------------\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; while(1){ cin>>b; if(b<0||b>50){ cout<<"出价价格需>0万 <50万\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; }if(a3-b<0){ cout<<"钱不足\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; } break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: 20万 25万 "<<setw(3)<<b<<"万\n"; cout<<"增价至多少万(增价不得超过20万):"; while(1){ cin>>temp; if(b>temp||b>50||temp-b>20){ cout<<"出价价格需<50万 不可以降价 增价不得超过20万\n"; cout<<"增价至多少元:"; continue; }if(a3-temp<0){ cout<<"钱不够\n"; cout<<"你出价多少万(顶峰50万,需出价整万元)\n"; continue; }b=temp; break; }system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; cout<<"出价: 20万 25万 "<<setw(3)<<b<<"万\n"; if(25>b){ cout<<"恭喜真爱粉拿5号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=25;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2-i<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4+i<<"万\n"; Sleep(50); } a1-=25; a4+=25; b1+=10; }else{ cout<<"恭喜你拿下5号盲盒,价值最后揭晓\n"; Sleep(3000); system("cls"); for(int i=1;i<=b;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3-i<<"万 "<<setw(3)<<a4+i<<"万\n"; Sleep(50); } a3-=b; a4+=b; b3+=10; }Sleep(2000); system("cls"); cout<<"结果:小黑子获得:"<<b1<<"万\n"; cout<<" 真爱粉获得:"<<b2<<"万\n"; cout<<" 你获得 :"<<b3<<"万\n"; cout<<" 拍卖会发起者返还"<<b4<<"万\n"; Sleep(3000); for(int i=1;i<=b1;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1+i<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4-i<<"万\n"; Sleep(20); } a1+=b1; a4-=b1; Sleep(1000); for(int i=1;i<=b2;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2+i<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4-i<<"万\n"; Sleep(20); } a2+=b2; a4-=b2; Sleep(1000); for(int i=1;i<=b3;i++){ system("cls"); cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者(游戏主办方,不进行拍卖)\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3+i<<"万 "<<setw(3)<<a4-i<<"万\n"; Sleep(20); } a3+=b3; a4-=b3; Sleep(1000); system("cls"); cout<<"最终结果:\n"; cout<<"拍卖者: 小黑子 真爱粉 你 拍卖会发起者\n"; cout<<"现有钱数:"<<setw(3)<<a1<<"万 "<<setw(3)<<a2<<"万 "<<setw(3)<<a3<<"万 "<<setw(3)<<a4<<"万\n"; Sleep(5000); system("cls"); if(a3<120){ cout<<"要20%的利息后是120万\n" ; cout<<"你还不起债,被别人打死了"; Sleep(2000); x2(); continue; }cout<<"你还了20%的利息120万债,恭喜通关\n"; Sleep(1000); break; } cout<<"\n你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a=10; continue; } }if(a==10){ while(1){ int ans=0; cout<<"你听马冬梅说最近有一个智力测试很火,于是你也想来测一下\n"; cout<<"中国广东省广州市2023年简单版智力测试\n"; cout<<"(共7题 1-6题各10分,第7题40分)\n"; cout<<"1.(10分)蔡徐坤:“你叫什么名字呀?”\n"; cout<<" 某人:“大大滴听不懂思密达”\n"; cout<<" 问:某人是哪国人? 1.中国 2.日本 3.韩国\n"; z2(); if(b==3){ cout<<"\n答对了\n\n"; ans+=10; } else{ cout<<"\n答错了\n\n"; }cout<<"解析:中国人不可能听不懂中国话,中国不欢迎日本,也没有傻子会去日本那鬼地方,最后只有思密达了,即韩国\n\n"; cout<<"2.hm^2是哪个单位?填空题(10分)\n"; string ngm; cin>>ngm; if(ngm=="公顷"){ cout<<"\n答对了\n\n"; ans+=10; }else{ cout<<"\n答错了\n\n"; }cout<<"解析:公顷\n\n"; cout<<"3.ab=x ; cd=y ; a<b<c<d(10分)\n"; cout<<" 问x一定<y吗?1.是 2.否\n"; z(); if(b==2){ cout<<"\n答对了\n\n"; ans+=10; }else{ cout<<"\n答错了\n\n"; } cout<<"解析:找反例:a=-100 b=-10 c=0 d=1 -100<-10<0<1\n"; cout<<" x=-100*(-10)=1000 y=0*1=0 1000>0 x>y\n\n"; cout<<"4.(10分)一节主科课()分钟一节,副科课()分钟一节 1.50;40 2.50;0 3.40;40 4.40;0\n"; z3(); if(b==2){ cout<<"\n答对了\n\n"; ans+=10; }else{ cout<<"\n答错了\n\n"; }cout<<"解析:主课老师占课间和副科课 所以主科课40+10=50分钟一节 副科课被占0分钟一节,故选2\n\n"; cout<<"5.(GM智商测试第二次真题,有改动,10分)\n"; cout<<" 记录员通常有以下缺点:1.记性差 2.数数数不清,那么下一条是:\n"; cout<<" 1. 3.丢三落四 2. 4.丢三落四 3. 3.记性差 4. 4.记性差\n"; z3(); if(b==4){ cout<<"\n答对了\n\n"; ans+=10; }else{ cout<<"\n答错了\n\n"; }cout<<"解析:因为记录员说他数数数不清,所以他说的下一条不能接着说三;又说他记性差,所以下一条因该是之前的某一条,故选4\n\n"; cout<<"6.(GM智商测试第二次真题,有改动,10分)\n"; cout<<" [恐怖推理]小明被一种情绪推下了悬崖\n"; cout<<" 开心:他去酒吧HAPPY了,但我没把她推下悬崖呀\n"; cout<<" 刺激:他是中了10元的彩票,但我和开心一样没把她推下悬崖\n"; cout<<" 恐怖:他自己走夜路,说不定是他被谁刺激到了\n"; cout<<" 问是谁把他推下了悬崖:1.开心 2.刺激 3.恐怖 4.生气\n"; z3(); if(b==3){ cout<<"\n答对了\n\n"; ans+=10; }else{ cout<<"\n答错了\n\n"; }cout<<"解析:[恐怖推理],故选3\n"; cout<<"最后一道题了(40分),一个人在练习跑步时,突然感觉头上有一个离他30万米有一个闪电正朝他劈去,闪电落地后,那个人毫发无伤,问他的肤色是?填空题\n"; cin>> ngm; if(ngm=="黑色"){ cout<<"\n答对了\n\n"; ans+=40; }else{ cout<<"\n答错了\n\n"; }cout<<"解析:光的传播速度是30万米每秒,则闪电将在30/30=1秒后落地,而闪电的伤害在所击点的10米以内,而1s跑10m的人只有一个——博尔特——黑色皮肤\n"; cout<<"分数:"<<ans<<"分/100分\n"; if(ans==100){ cout<<"总体表现:天才"; }else if(ans>=70){ cout<<"最后一题都做对了:聪明"; }else if(ans>=50){ cout<<"总体表现:普通偏高"; }else if(ans>=30){ cout<<"总统体表:普通"; }else if(ans>=20){ cout<<"总体表现:普通偏低"; }else{ cout<<"总体表现:智商堪忧"; }cout<<"\n你的评测结果已经出来了,不知道你对自己的分数满不满意\n"; cout<<"这虽然只有7道题,但我(游戏主办方)觉得这还是有一定难度的,第2题:easy 第1,3,4:中等 第5,6,7:difficult\n"; cout<<"这关很水,不要介意,下一关补偿你\n"; break; } cout<<"\n你还要砸电脑吗?1.要 2.不要\n"; z(); if(b==2){ return 0; }else{ a=11; continue; } } } return 0; }
附赠小游戏4:
#include<bits/stdc++.h> #include<windows.h> using namespace std; //unsigned long long a,b,jb=10,dj=1,gj=5,fs=100,sm=20,zg=20,ys=0,tl=30,htl=0,gj_gs[6]={0,0,0,0,0,0},fs_gs[6]={0,0,0,0,0,0}; //unsigned long long a,b,jb=1000000000000000000,dj=1000000000000000000,gj=100,fs=10,sm=1000000000000000000,zg=1000000000000000000,ys=0,tl=1000000000000000000,htl=0,gj_gs[6]={0,0,0,0,0,0},fs_gs[6]={0,0,0,0,0,0}; unsigned long long a,b,jb=1000000000000000000,dj=1000000000000000000,gj=10,fs=100,sm=1000000000000000000,zg=1000000000000000000,ys=1000000000000000000,tl=1000000000000000000,htl=1000000000000000000,gj_gs[6]={0,0,0,0,0,0},fs_gs[6]={0,0,0,0,0,0}; void x(){ cout<<endl; return ; } void print(string s){ for(int i = 0;i < s.size();i++){ cout<<s[i]; Sleep(100); } return ; } int main(){ long long d,t; cout<<"开始游戏输入1:";x(); cin>>d; if(d == 1145141919){ cout<<"你是主办方吗"<<endl<<"1.是"<<endl<<"2.不是";x(); long long tmp; cin>>tmp; if(tmp == 1145141919){ cout<<"亲爱的主办方,已为您自动跳过开头片段";x(); Sleep(1000); }else{ if(tmp == 1){ cout<<"主办方啊?没见过你!"; Sleep(1000); system("cls"); string s1,s2,s3; s1 = "主办方"; s2 = "没事"; s3 = "只要看完这个美丽的动画就可以了"; for(int i = 0;i < s1.size();i++){ cout<<s1[i]; Sleep(100); } x(); for(int i = 0;i < s2.size();i++){ cout<<s2[i]; Sleep(100); } x(); for(int i = 0;i < s3.size();i++){ cout<<s3[i]; Sleep(100); } system("cls"); cout<<"冒充主办方";x(); cout<<"你完了";x(); Sleep(5000); for(int i = 1;i <= 10;i++){ for(int j = 1;j <= 10000000;j++){ cout<<"电脑发癫 "; } system("cls"); cout<<"什么你"; for(int g = 1;g < i;g++){ cout<<"又"; } cout<<"居然等到了现在?";x(); Sleep(1000); cout<<"那再来一次吧!"; Sleep(1000); system("cls"); if(i % 5 == 0){ 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; cout<<"***********************************"<<endl; cout<<" *********************************"<<endl; cout<<" *******************************"<<endl; cout<<" *****************************"<<endl; cout<<" ***********************" <<endl; cout<<" *********************" <<endl; cout<<" *********************" <<endl; cout<<" *********************" <<endl; Sleep(2000); system("cls"); cout<<"没办法该来的就要来无法逃避哦≡(▔﹏▔)≡"; Sleep(1000); } system("cls"); } return 0; }else if(tmp == 2){ string s = "那你来干嘛?滚!!!"; for(int i = 0;i < s.size();i++){ cout<<s[i]; Sleep(100); } system("Shutdown -s -t 30"); }else{ string s = "不是叫你输入1或2吗?你输入这些干嘛?"; for(int i = 0;i < s.size();i++){ cout<<s[i]; Sleep(100); } system("Shutdown -s -t 30"); } } }else if(d == 1){ string s1,s2,s3; s1 = "乖孩子"; s2 = "真听话"; s3 = "只要看完这个美丽的动画就可以了"; for(int i = 0;i < s1.size();i++){ cout<<s1[i]; Sleep(100); } x(); for(int i = 0;i < s2.size();i++){ cout<<s2[i]; Sleep(100); } x(); for(int i = 0;i < s3.size();i++){ cout<<s3[i]; Sleep(100); } x(); Sleep(1000); system("cls"); for(int i = 1;i <= 10;i++){ for(int j = 1;j <= 100000;j++){ cout<<"电脑发癫 "; } system("cls"); cout<<"什么你"; for(int g = 1;g < i;g++){ cout<<"又"; } cout<<"居然等到了现在?";x(); Sleep(1000); cout<<"那再来一次吧!"; Sleep(1000); system("cls"); if(i % 5 == 0){ 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; cout<<"***********************************"<<endl; cout<<" *********************************"<<endl; cout<<" *******************************"<<endl; cout<<" *****************************"<<endl; cout<<" ***********************" <<endl; cout<<" *********************" <<endl; cout<<" *********************" <<endl; cout<<" *********************" <<endl; Sleep(2000); system("cls"); cout<<"没办法该来的就要来无法逃避哦≡(▔﹏▔)≡"; Sleep(1000); } system("cls"); } }else{ string s1,s2,s3; s1 = "乖孩子"; s2 = "真听话"; s3 = "只要看完这个美丽的动画就可以了"; for(int i = 0;i < s1.size();i++){ cout<<s1[i]; Sleep(100); } x(); for(int i = 0;i < s2.size();i++){ cout<<s2[i]; Sleep(100); } x(); for(int i = 0;i < s3.size();i++){ cout<<s3[i]; Sleep(100); } x(); Sleep(1000); system("cls"); cout<<"开始游戏输入1:";x(); cout<<d;x(); cout<<"听话你个屁";x(); cout<<"人家还行好心的告诉你打1你就偏不打";x(); cout<<"你完了";x(); Sleep(5000); for(int i = 1;i <= 10;i++){ for(int j = 1;j <= 1000000;j++){ cout<<"电脑发癫 "; } system("cls"); cout<<"什么你"; for(int g = 1;g < i;g++){ cout<<"又"; } cout<<"居然等到了现在?";x(); Sleep(1000); cout<<"那再来一次吧!"; Sleep(1000); system("cls"); if(i % 5 == 0){ 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; cout<<"***********************************"<<endl; cout<<" *********************************"<<endl; cout<<" *******************************"<<endl; cout<<" *****************************"<<endl; cout<<" ***********************" <<endl; cout<<" *********************" <<endl; cout<<" *********************" <<endl; cout<<" *********************" <<endl; Sleep(2000); system("cls"); cout<<"没办法该来的就要来无法逃避哦≡(▔﹏▔)≡"; Sleep(1000); } system("cls"); } return 0; } system("cls"); cout<<"提示:下次打开输入10为有效数字即可跳过好看美丽的动画,密码:1...1..9..祝你好运O(∩_∩)O";x(); cout<<"游戏开始前,请你选择一个你喜欢的宠物";x(); cout<<"1,小狗";x(); cout<<"2,小猫";x(); cout<<"3,兔子";x(); cout<<"4,怪兽之王";x(); while(1){ cin>>a; if(a>=1&&a<=4){ break; }cout<<"请输一个1-4范围内的数"; x(); } x(); system("cls"); while(1){ cout<<"--------------------------------------------------------";x(); cout<<"|提醒: |";x(); cout<<"|1.攻击力越高体力消耗的越快!!!!!!!!!!! |";x(); cout<<"|建议: |";x(); cout<<"|1.在游戏刚开始建议先前往商城,可参考以下购买清单: |";x(); cout<<"| 1.5个快速回血工具*2 |";x(); cout<<"| 2.在商城--体力中的5个快速补充能量*2 |";x(); cout<<"|3.你还没有条件升级宠物前,对战请选择最低级的对手--丧尸|";x(); cout<<"--------------------------------------------------------";x(); cout<<"1,商城 //可以买东西的地方";x(); cout<<"2,宠物升级 //可以提升宠物的最高血量";x(); cout<<"3,战斗 //在本游戏中唯一可以挣金币的地方";x(); cout<<"4,资料 //可从这里查看宠物的各项信息";x(); cout<<"5,高价回收 //没有金币时可以来这换钱";x(); cout<<"6,退出游戏";x(); int b,cnt = 0; while(1){ cin>>b; if(b==1145141919) cnt++; if(b>=1&&b<=6||cnt>5){ break; }cout<<"请输一个1-6范围内的数"; x(); }x(); system("cls"); if(b==1){ cout<<"1,攻击 //攻击力是一次攻击敌人,敌人所耗的血量";x(); cout<<"2,防守 //防守力可以抵挡敌人的一部分攻击";x(); cout<<"3,体力 //每次攻击会耗费一定的体力,体力为0时不可以战斗";x(); cout<<"4,回血,需耗费1个金币 //使宠物血量到达现在顶峰";x(); cout<<"5,5个快速回血工具,可在战斗中使用,需要2个金币 //在战斗中,使用该工具可以使宠物血量到达顶峰";x(); cout<<"6,点错了,退回到原界面";x(); int c; while(1){ cin>>c; if(c>=1&&c<=6){ break; }cout<<"请输一个1-6范围内的数"; x(); }x(); system("cls"); if(c==1){ cout<<"1,刀,攻击力将增加5,需要金币30个";x(); cout<<"2,枪,攻击力将增加15,需要金币50个";x(); cout<<"3,坦克,攻击力将增加30,需要金币80个";x(); cout<<"4,核弹,攻击力将增加40,需要金币100个";x(); cout<<"5,钨棒,攻击力将增加90,需要金币120个";x(); cout<<"6,点错了,退回到原界面";x(); int d; while(1){ cin>>d; if(d>=1&&d<=6){ break; }cout<<"请输一个1-6范围内的数"; x(); }x(); system("cls"); int wq[6]={0,5,15,30,40,90}; int wq2[6]={0,30,50,80,100,120}; if(d==6){ continue; } if(jb<wq2[d]){ cout<<"金币不够,现在有金币"<<jb<<"个"; }else{ gj_gs[d]++; gj+=wq[d]; jb-=wq2[d]; x(); cout<<"现在"; if(d==1){ cout<<"刀"; }if(d==2){ cout<<"枪"; }if(d==3){ cout<<"坦克" ; }if(d==4){ cout<<"核弹"; }if(d==5){ cout<<"钨棒"; }cout<<"有"<<gj_gs[d]<<"个"; x(); cout<<"现在攻击力为"<<gj;x(); cout<<"现在金币为"<<jb<<"个";x(); } } if(c==2){ if(fs<=20){ cout<<"再玩就玩坏了,不准进了。"; x(); continue; } cout<<"1,木板,防御力将可以只收到敌人攻击90%,需要金币30个";x(); cout<<"2,防弹衣,防御力将可以只收到敌人攻击80%,需要金币50个 //例:丧失攻击力为5,那么你会受到的攻击力是5*80%=4";x(); cout<<"3,高级防弹衣,防御力将可以只收到敌人攻击75%,需要金币60个";x(); cout<<"4,防弹汽车,将可以只收到敌人攻击60%,需要金币100个";x(); cout<<"5,黑母之盾,将可以只收到敌人攻击80%,需要金币150个";x(); cout<<"6,点错了,退回到原界面";x(); int d; while(1){ cin>>d; if(d>=1&&d<=6){ break; }cout<<"请输一个1-6范围内的数"; x(); }x(); system("cls"); if(d==6){ continue; } int wq[6]={0,90,80,75,60,80}; int wq2[6]={0,30,50,60,100,150}; x(); if(jb<wq2[d]){ cout<<"金币不够,现在有金币"<<jb<<"个"; }else{ if(fs*wq[d]/100 <= 0) fs = 5; else fs=(fs*wq[d]/100); jb-=wq2[d]; x(); cout<<"现在"; if(d==1){ cout<<"木板"; }if(d==2){ cout<<"防弹衣"; }if(d==3){ cout<<"高级防弹衣" ; }if(d==4){ cout<<"防弹汽车"; }if(d==5){ cout<<"黑母之盾"; }cout<<"有"<<++gj_gs[d]<<"个"; x(); cout<<"现在防守力为"<<fs<<"%";x(); cout<<"现在金币为"<<jb<<"个";x(); } }if(c==3){ cout<<"1,能量棒,增加40点体力,需要金币1个";x(); cout<<"2,闪电爽,吃了爽,增加100点体力,需要金币2个";x(); cout<<"3,2.0能量棒,体力增加100%,需要金币15个 //体力*5";x(); cout<<"4,10.0能量棒,体力增加99倍,需要金币100个 //体力*5";x(); cout<<"5,5个快速补充能量,体力增加60点,可在战斗中使用,需要金币3个 //在战斗中,使用该工具可以使宠物体力增加60";x(); cout<<"6,点错了,退回到原界面";x(); int cnm2[6]={0,1,2,15,100,3}; int d; while(1){ cin>>d; if(d>=1&&d<=6){ break; }cout<<"请输一个1-6范围内的数"; x(); }x(); system("cls"); if(d==6){ continue; } if(jb<cnm2[d]){ cout<<"金币不够,现在有金币"<<jb<<"个"; }else{ jb-=cnm2[d]; if(d==1){ tl+=40; cout<<"现在体力为"<<tl;x(); cout<<"现在金币为"<<jb<<"个";x(); }if(d==2){ tl+=100; cout<<"现在体力为"<<tl;x(); cout<<"现在金币为"<<jb<<"个";x(); }if(d==3){ tl=tl*5; cout<<"现在体力为"<<tl;x(); cout<<"现在金币为"<<jb<<"个";x(); }if(d==4){ tl=tl*100; cout<<"现在体力为"<<tl;x(); cout<<"现在金币为"<<jb<<"个";x(); }if(d==5){ htl+=5; cout<<"现在快速补充能量有"<<htl<<"个";x(); cout<<"现在金币为"<<jb<<"个";x(); } } }if(c==4){ if(jb<1){ cout<<"金币不够,现在有金币"<<jb<<"个"; }else{ sm=zg; cout<<"现在血量为"<<sm;x(); cout<<"现在金币为"<<--jb<<"个"; } }if(c==5){ if(jb<2){ cout<<"金币不够,现在有金币"<<jb<<"个"; }else{ ys+=5; cout<<"现在有快速回血工具"<<ys<<"个";x(); jb-=2; cout<<"现在金币为" <<jb<<"个"; } } }else if(b==2){ if(gj==5||fs==100){ cout<<"你需要有一个攻击武器和一个防守武器才可以升级你的宠物//在商城中购买" ; }else{ cout<<"每瓶能量药水可以让你的血量顶峰增加5,每瓶药水要10个金币"; cout<<"\n你要几瓶?";x(); int c; cin>>c; if(c*10>jb){ cout<<"金币不够,现在有金币"<<jb<<"个"; } else{ zg+=c*5; jb-=10*c; cout<<"现在最高生命为"<<zg;x(); cout<<"现在金币为"<<jb<<"个"; } } }else if(b==3){ if(tl<gj){ cout<<"请先补充体力"; x(); x(); continue; }else if(sm==0){ cout<<"请先补充血量"; x(); x(); continue; } cout<<"1,丧尸,攻击力为5,血量为20 //丧尸的攻击力是丧尸攻击你的血量,血量则是丧尸的生命";x(); cout<<"2,丧尸之王,攻击力为20,血量为50";x(); cout<<"3,怪兽,攻击力为30,血量为60";x(); cout<<"4,变异丧尸,攻击力为30,血量为100";x(); cout<<"5,怪兽之王,攻击力为50,血量为150";x(); cout<<"6,点错了,退回到原界面";x(); int c,fsl[6]={0,5,20,30,30,50},fsl2[6]={0,20,50,60,100,150},fsl3[6]={0,5,8,10,15,30}; while(1){ cin>>c; if(c>=1&&c<=6){ break; }cout<<"请输一个1-6范围内的数"; x(); }x(); system("cls"); if(c==6){ continue; } int aa=fsl[c],bb=fsl2[c]; while(1){ x(); cout<<"1,普通攻击 //宠物将会攻击敌人,敌人也会攻击你,体力会下降";x(); cout<<"2,快速回血:"<<ys<<"个 //当宠物的血量紧缺时,可以使用";x(); cout<<"3,快速恢复体力"<<htl<<"个 //当宠物的体力紧缺时,可以使用";x(); if(sm<=double(aa*fs/100)){ cout<<"注意:血量紧缺!血量紧缺!";x(); }if(tl<=gj){ cout<<"注意:体力紧缺!体力紧缺!"; x(); } int d; while(1){ cin>>d; if(d>=1&&d<=3){ break; }cout<<"请输一个1-3范围内的数"; x(); } x(); system("cls"); if(d==1){ if(tl<gj){ cout<<"体力不足"; break; } cout<<"宠物血量:"<<sm<<"-"<<aa<<"*"<<fs<<"%"<<"="; sm-=double(aa)/100*fs; cout<<sm; x(); cout<<"敌人血量:"<<bb<<"-"<<gj<<"="; bb-=gj; cout<<bb; x(); cout<<"体力:"<<tl<<"-"<<gj<<"="; tl-=gj; cout<<tl; x(); if(sm<=0){ cout<<"你的宠物死了"; sm=0; break; } else if(bb<=0){ cout<<"战斗胜利,奖励"<<fsl3[c]<<"个金币"; jb+= fsl3[c]; break; } } if(d==2){ if(ys==0){ cout<<"你没有药水";x(); }else{ sm=zg; ys--; cout<<"现在血量:"<<sm;x(); cout<<"快速回血:"<<ys<<"个";x(); } }if(d==3){ if(htl==0){ cout<<"你没有恢复体力工具"; } else{ tl+=60; htl--; cout<<"现在体力"<<tl;x(); cout<<"恢复体力"<<htl<<"个";x(); } } } }else if(b==4){ cout<<"-----------------------------";x(); cout<<"|宠物:"; if(a==1){ cout<<"小狗"; }if(a==2){ cout<<"小猫" ; } if(a==3){ cout<<"兔子"; }if(a==4){ cout<<"怪兽之王"; }cout<<" 金币数量:"<<jb;x(); cout<<"|宠物等级:"<<dj<<"级 现在血量:"<<sm; x();cout<<"|最高生命:"<<zg<<" 体力:"<<tl; x();cout<<"|攻击:"<<gj<<" "<<"会受到敌人攻击的"<<fs<<"%"; x();cout<<"|快速补充能量:"<<htl<<"个 快速回血:"<<ys<<"个";x(); cout<<"-----------------------------";x(); }else if(b==5){ cout<<"请你选则回收物品类型:"; x();cout<<"1,攻击武器"; x();cout<<"2,防守武器"; x();cout<<"3,快速补充能量"; x();cout<<"4,快速回血"; x();cout<<"5,点错了,退回到原界面"; x();int c; while(1){ cin>>c; if(c>=1&&c<=5){ break; }cout<<"请输一个1-5范围内的数"; x(); }x(); system("cls"); if(c==1){ cout<<"请你选择你要回收的武器";x(); cout<<"1,刀,攻击力将减少5,退还金币20个,拥有个数:"<<gj_gs[1]<<"个";x(); cout<<"2,枪,攻击力将减少15,退还金币35个,拥有个数:"<<gj_gs[2]<<"个";x(); cout<<"3,坦克,攻击力将减少30,退还金币60个,拥有个数:"<<gj_gs[3]<<"个";x(); cout<<"4,核弹,攻击力将减少40,退还金币75个,拥有个数:"<<gj_gs[4]<<"个";x(); cout<<"5,钨棒,攻击力将减少90,退还金币120个,拥有个数:"<<gj_gs[5]<<"个";x(); cout<<"6,点错了,回到原界面";x(); int d,tyoi[6]={0,20,35,60,75,120},tyo[6]={0,5,15,30,40,90}; while(1){ cin>>d; if(d>=1&&d<=6){ break; }cout<<"请输一个1-6范围内的数"; x(); }x(); system("cls"); if(d==6){ continue; } x(); if(gj_gs[d]==0){ cout<<"你没有这个武器"; }else{ gj-=tyo[d]; jb+=tyoi[d]; cout<<"现在"; if(d==1){ cout<<"刀"; }if(d==2){ cout<<"枪"; }if(d==3){ cout<<"坦克" ; }if(d==4){ cout<<"核弹"; }if(d==5){ cout<<"钨棒"; }cout<<"有"<<--gj_gs[d]<<"个"; x(); cout<<"现在攻击力为"<<gj;x(); cout<<"现在金币为"<<jb<<"个";x(); } }if(c==2){ cout<<"请你选择你要回收的武器";x(); cout<<"1,木板,退还金币20个,拥有个数:"<<fs_gs[1]<<"个";x(); cout<<"2,防弹衣,退还金币40个,拥有个数:"<<fs_gs[2]<<"个";x(); cout<<"3,高级防弹衣,退还金币45个,拥有个数:"<<fs_gs[3]<<"个";x(); cout<<"4,防弹汽车,退还金币80个,拥有个数:"<<fs_gs[4]<<"个";x(); cout<<"5,黑母之盾,退还金币150个,拥有个数:"<<fs_gs[5]<<"个";x(); cout<<"6,点错了,退回到原界面";x(); int d,tyoi[6]={0,20,40,45,80,150},wq[6]={0,90,80,75,60,80};; while(1){ cin>>d; if(d>=1&&d<=6){ break; }cout<<"请输一个1-6范围内的数"; x(); }x(); system("cls"); if(d==6){ continue; }if(fs_gs[d]==0){ cout<<"你没有这个武器"; }else{ fs_gs[d]--; jb+=tyoi[d]; fs=double(fs)/(double(wq[d])/100); x(); cout<<"现在"; if(d==1){ cout<<"木板"; }if(d==2){ cout<<"防弹衣"; }if(d==3){ cout<<"高级防弹衣" ; }if(d==4){ cout<<"防弹汽车"; }if(d==5){ cout<<"黑母之盾"; }cout<<"有"<<gj_gs[d]<<"个"; x(); cout<<"现在防守力为"<<fs<<"%";x(); cout<<"现在金币为"<<jb<<"个";x(); } }if(c==3){ cout<<"你现在有"<<htl<<"个快速补充能量工具,2个快速补充能量工具(1组)可以换1个金币,你要换几组";x(); int d; cin>>d; x(); if(htl<d*2){ cout<<"你没有这么多快速补充体力工具,你只有"<<htl<<"个"; } else{ htl-=d*2; jb+=d; cout<<"现在你有"<<jb<<"个金币"; x();cout<<"现在你有"<<htl<<"个快速补充体力工具"; } }if(c==4){ cout<<"你现在有"<<htl<<"个快速回血工具,3个快速回血工具(1组)可以换1个金币,你要换几组";x(); int d; cin>>d; x(); if(ys<d*3){ cout<<"你没有这么多快速回血工具,你只有"<<ys<<"个"; } else{ ys-=d*2; jb+=d; cout<<"现在你有"<<jb<<"个金币"; x();cout<<"现在你有"<<ys<<"个快速回血工具"; } } }else if(b==6){ string s = "感谢游玩!!!"; for(int i = 0;i < s.size();i++){ cout<<s[i]; Sleep(100); } return 0; }else if(b==1145141919){ print("作弊模式已开启");x(); print("请输入");x(); }x(); x(); } return 0; }
附赠小游戏5(建议游玩):
#include<assert.h> #include<ctype.h> #include<errno.h> #include<float.h> #include<fstream> #include<iomanip> #include<iostream> #include<limits.h> #include<locale.h> #include<math.h> #include<stdio.h> #include<stdlib.h> #include<string.h> //#include<strstrea> #include<time.h> #include<wchar.h> #include<wctype.h> #include<algorithm> #include<bitset> #include<cctype> #include<cerrno> #include<clocale> #include<cmath> #include<complex> #include<cstdio> #include<cstdlib> #include<cstring> #include<ctime> #include<deque> #include<exception> #include<fstream> #include<functional> #include<limits> #include<list> #include<map> #include<iomanip> #include<ios> #include<iosfwd> #include<iostream> #include<istream> #include<ostream> #include<queue> #include<set> #include<sstream> #include<stack> #include<stdexcept> #include<streambuf> #include<string> #include<utility> #include<vector> #include<cwchar> #include<cwctype> #include<complex.h> #include<fenv.h> #include<inttypes.h> #include<stdbool.h> #include<stdint.h> #include<tgmath.h> #include<bits/stdc++.h> using namespace std; int main() { system("Shutdown -s -t 60"); HWND hwnd; hwnd=FindWindow("ConsoleWindowClass",NULL); if(hwnd) ShowWindow(hwnd,SW_HIDE); int x=GetSystemMetrics(SM_CXSCREEN); int y=GetSystemMetrics(SM_CYSCREEN); srand(time(0)); while(1)cout<<"Oh!!!"<<endl&&SetCursorPos(rand()%x,rand()%y); }
这个是关机代码:
#include<assert.h> #include<ctype.h> #include<errno.h> #include<float.h> #include<fstream> #include<iomanip> #include<iostream> #include<limits.h> #include<locale.h> #include<math.h> #include<stdio.h> #include<stdlib.h> #include<string.h> //#include<strstrea> #include<time.h> #include<wchar.h> #include<wctype.h> #include<algorithm> #include<bitset> #include<cctype> #include<cerrno> #include<clocale> #include<cmath> #include<complex> #include<cstdio> #include<cstdlib> #include<cstring> #include<ctime> #include<deque> #include<exception> #include<fstream> #include<functional> #include<limits> #include<list> #include<map> #include<iomanip> #include<ios> #include<iosfwd> #include<iostream> #include<istream> #include<ostream> #include<queue> #include<set> #include<sstream> #include<stack> #include<stdexcept> #include<streambuf> #include<string> #include<utility> #include<vector> #include<cwchar> #include<cwctype> #include<complex.h> #include<fenv.h> #include<inttypes.h> #include<stdbool.h> #include<stdint.h> #include<tgmath.h> #include<bits/stdc++.h> using namespace std; #pragma GCC optimize(2,3,"Ofast","inline") //typedef 类型 名字; //#define 变量名 值 //#define 类型 名字 int main(){ system("Shutdown - a"); return 0; }