初墨,多么优雅的名字——可惜他姓熊。

拔杰,多么高端的名字——可惜他姓朱。

渔歌,多么诗意的名字——可惜他姓章。

楚衢,多么凝重的名字——可惜他姓滚。

巅峰,多么上进的名字——可惜他姓杨。

紫藤,多么大气的名字——可惜他姓杜。

晶斌,多么文静的名字——可惜他姓沈。

泥马,多么深奥的名字——可惜他姓曹。

珍香,多么秀丽的名字——可惜他姓史。

达野,多么磅礴的名字——可惜他姓尼。

仁范,多么仁慈的名字——可惜他姓沙。

虚困,多么深远的名字——可惜他姓彩。

泰狂,多么雄壮的名字——可惜他姓遍。

迪福,多么吉祥的名字——可惜他姓石。

本规,多么端正的名字——可惜他姓日。

哈友,多么亲近的名字——可惜他姓米。

////版本 1 北冥有鱼,其名为鲲。 鲲之大,long long 装不下。 化而为鸟,其名为鹏。 鹏之背,unsigned long long 塞不下。 怒而飞,扶摇直上,内存直接 MLE。 水击三千里,一输出直接 OLE。 版本 2 北冥有鱼,其名为鲲。 鲲之大,数组开不下。 化而为鸟,其名为鹏。 鹏之翼,递归深度炸栈。 抟扶摇而上者九万里, printf 还没跑完,程序已 TLE。 📜其他古文改编梗 1.《陋室铭》编程版 山不在高,有仙则名。 水不在深,有龙则灵。 斯是陋室,惟吾码灵。 bug 藏代码底,warning 满屏生。 谈笑有报错,往来无 AC。 可以调 bug,改源码。 无提交之劳形,无过样之欢心。 网上搜题解,复制又粘贴。 码农云:何错之有? 2.《木兰辞》魔改 唧唧复唧唧,木兰敲代码。 不闻键盘响,唯闻报错啼。 问女何所思,问女何所忆。 女亦无所思,女亦无所忆。 昨夜看评测,毒点一大堆。 机房百套题,套套不能过。 3.《水调歌头》 代码何时过?举目望屏幕。 不知 OJ 后台,今日几时 AC。 我欲删码重写,又怕样例全错,调改太难熬。 报错乱飞舞,恰似梦一场。 😂短句网络编程梗 十年 OI 一场空,不开 long long 见祖宗。 数组开大 MLE,开小 RE,刚刚好样例过,大数据 WA。 样例一遍过,提交全 WA,改完 WA 变 TLE。 递归一时爽,爆栈火葬场。 输出多一个空格,整整调一整夜。 本地跑的飞起,交上去直接超时。 思路千般妙,调试两行泪。 变量名写错,查了三小时。 古诗魔改短句 床前明月光,代码爆内存。 举头望样例,低头 WA 两行。 春眠不觉晓,处处 bug 扰。 夜来报错声,WA 知多少。 朝辞白帝彩云间,千行代码 RE 完。 样例三行全通过,提交直接零分还

好玩的,不骗 你!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#include <bits/stdc++.h> #include <windows.h> #include <time.h> #include #include <conio.h> using namespace std; /*剪贴板

任意键继续+清空终端: cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls");

cout << "请输入:";

cout << "请输入数字:";

cout << "请选择物品进行互动" << endl;

; */ char g;//任意键继续 void gxrz(){//更新日志 system("cls"); cout << "----------------------" << endl; cout << "2025/8/8 20:21 游戏1.0版本,有了lv1" << endl; cout << "2025/8/8 20:34 游戏1.1版本,新增游戏说明" << endl; cout << "2025/8/9 09:14 游戏1.1版本,lv2开始施工" << endl; cout << "2025/8/9 10:52 游戏2.1版本,lv2施工完成" << endl; cout << "2025/8/22 17:46 游戏3.1版本,lv3施工完成" << endl; cout << "2025/8/23 9:18 游戏3.2版本,lv3开发1个补丁" << endl; cout << "2025/8/23 10:16 游戏4.2版本,lv4施工完成" << endl; cout << "2025/9/14 9:34 游戏4.3版本,lv4开发1个补丁" << endl; cout << "2025/10/19 约20:30 游戏4.3版本,lv5开始施工" << endl; cout << "2025/10/19 约21:00 代码突破1000行" << endl; cout << "2025/10/19 21:40 游戏5.4版本,lv5施工完成" << endl; cout << "2025/12/13 11:03 游戏5.4版本,lv6开工,完善关卡选择的内容" << endl; cout << "2025/12/20 15:54 游戏6.4版本,lv6开通" << endl; cout << "2025/12/27 17:21 游戏6.4版本,lv7开工" << endl; cout << "2026/1/24 --:-- 游戏6.5版本,lv6进行debug" << endl; cout << "到底了" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); return; } bool vis[1010]; void lv1(){//关卡1 cout << "lv1:密室逃脱" << endl; cout << "你被关进了密室里,密室里一片漆黑,原来是灯没开" << endl; cout << "输入ms进入密室,输入#退出关卡" << endl; cout << "请输入:"; string s1; cin >> s1; bool ys = false; system("cls"); if(s1 == "ms"){ cout << "密室里有东西" << endl; bool deng = false; while(true){ bool f = false; while(!deng){ system("cls"); cout << "请选择物品进行互动" << endl; cout << "1.电闸 2.丝线 3.电线" << endl; cout << "请输入数字:"; int i1; cin >> i1; system("cls"); if(i1 == 1 && !f){ cout << "电闸关上了" << endl; cout << "是否打开电闸?" << endl; cout << "是请输入1,否请输入2" << endl; cout << "请输入:"; int ii1; cin >> ii1; system("cls"); if(ii1 == 1){ cout << "电闸没有反应,原来是电线断了" << endl; cout << "得要想想办法" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } system("cls"); } else if(i1 == 1 && f){ cout << "电闸电力恢复了!你打开了电闸" << endl; cout << "灯打开了" << endl; cout << "你看见了更多的东西" << endl; deng = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(i1 == 2){ cout << "你要拿线缠什么?" << endl; cout << "1.电线" << endl; cout << "请输入数字:"; int ii2; cin >> ii2; cout << "电线缠在了电闸断掉的电线和另外一根电线上," << endl; f = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(i1 == 3){ system("cls"); cout << "这只是普通的电线而已......" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } system("cls"); cout << "请选择物品进行互动" << endl; cout << "1.桌子 2.柜子 3.大门" << endl; cout << "请输入数字:"; int i; cin >> i; system("cls"); if(i == 1){ cout << "桌子上有东西" << endl; cout << "请选择物品进行互动" << endl; cout << "1.台灯 2.盒子 3.铁丝" << endl; cout << "请输入数字:"; int ii; cin >> ii; system("cls"); if(ii == 1){ cout << "这是熄灭的台灯" << endl; cout << "是否打开?是输入1,否输入2" << endl; cout << "请输入:"; int iii; cin >> iii; system("cls"); if(iii == 1){ cout << "台灯啪的一下亮了" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(ii == 2){ cout << "这是密码盒" << endl; cout << "请输入6位字母密码,全部小写,返回输入#" << endl; cout << "请输入:"; string ss1; cin >> ss1; system("cls"); if(ss1 == "zhishu"){ cout << "密码正确,盒子打开了" << endl; cout << "盒子里是钥匙" << endl; ys = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ss1 == "#") ; else{ cout << "密码错误" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(ii == 3){ cout << "铁丝:你干嘛?" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(i == 2){ cout << "请选择物品进行互动" << endl; cout << "1.书 2.柜子本身" << endl; cout << "请输入数字:"; int ii; cin >> ii; system("cls"); if(ii == 1){ cout << "这是一本讲数学的书" << endl; cout << "这本书又旧又破,大部分字已经看不清了" << endl; cout << "只能看到几个数字" << endl; cout << "2 5 3 7 11 17 13 19" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii == 2 && !ys){ cout << "你发现了隐藏门" << endl; cout << "需要钥匙" << endl; cout << "柜子后面有纸条" << endl; cout << "纸条写了:#们的名字#关键!" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii == 2 && ys){ cout << "门开了!!!" << endl; cout << "阳光照了进来,你成功逃出了密室!" << endl; vis[1] = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); return; } } else if(i == 3){ if(!ys){ cout << "你没有钥匙~" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ys){ cout << "这个钥匙和大门钥匙孔不匹配qwq" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } } } else{ system("cls"); return; } } /*剪贴板

任意键继续+清空终端: cout << "请按任意键继续..." << endl; g = _getch(); system("cls");

cout << "请输入:";

cout << "请输入数字:";

cout << "请选择物品进行互动" << endl;

*/ void lv2(){ cout << "lv2:越狱挑战" << endl; cout << "你被关进了监狱里,现在你要逃出去" << endl; cout << "输入lf进入游戏,输入#退出关卡" << endl; cout << "请输入:"; string s1; cin >> s1; system("cls"); if(s1 == "lf"){ bool men = false; bool ys = false; bool gunzi = false; bool ch = false; while(!men){ cout << "请选择物品进行互动" << endl; if(!gunzi) cout << "1.窗户 2.破旧的床 3.画 4.门 5.通风管" << endl; if(gunzi) cout << "1.窗户 2.棍子 3.画 4.门 5.通风管" << endl; cout << "请输入数字:"; int ii1; cin >> ii1; system("cls"); if(ii1 == 1 && !ch){ cout << "普通的窗户,但是看不到外面..." << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii1 == 1 && gunzi && ch){ cout << "窗户被敲开了,你被关在很高的地方,不能跳窗" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii1 == 2 && !gunzi){ cout << "床的铁架子被你拆成了棍子" << endl; gunzi = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii1 == 2 && gunzi){ cout << "你要敲什么?" << endl; cout << "1.通风管 2.窗户" << endl; cout << "请输入:" << endl; int ii2; cin >> ii2; system("cls"); if(ii2 == 1){ cout << "通风管里的东西被你扒了出来" << endl; cout << "里面有钥匙" << endl; ys = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii2 == 2){ cout << "窗户打开了" << endl; ch = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(ii1 == 3){ cout << "非常普通的画,内容如下:" << endl; cout << "XXX.XXX.XXX.XXX" << endl; cout << "X...X.X...X.X.." << endl; cout << "XXX.X.X...X.XXX" << endl; cout << "..X.X.X...X.X.X" << endl; cout << "XXX.XXX...X.XXX" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii1 == 4){ cout << "输入四位数字密码,退出输入1" << endl; int ii2; cin >> ii2; if(ii2 == 5076){ cout << "对了,门开了" << endl; men = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii2 == 1) ; else{ cout << "输入错误" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(ii1 == 5){ cout << "通风管里很黑,好像有东西" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } system("cls"); cout << "你逃出牢房,逃到了走廊里,走廊尽头有狱警,他们发现了你" << endl; cout << "“犯人跑啦!犯人跑啦!”他们大喊,并开始追你" << endl; cout << "你躲进了警务室,里面有个小狱警" << endl; bool damen = false; bool zhitiao = false; bool ykq = false; while(!damen){ cout << "请选择物品进行互动" << endl; if(!zhitiao) cout << "1.狱警 2.保险箱 3.通风管" << endl; cout << "请输入数字:"; int ii3; cin >> ii3; system("cls"); if(ii3 == 1 && !ykq){ cout << "这里真热...空调遥控器呢?" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii3 == 1 && ykq){ cout << "他很感谢你,告诉了你大门的位置" << endl; damen = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ii3 == 2){ cout << "六位字母密码(全部大写),返回输入#" << endl; cout << "请输入:" << endl; string ss1; cin >> ss1; system("cls"); if(ss1 == "IAKIOI"){ cout << "密码正确,保险箱打开,里面是遥控器" << endl; ykq = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(ss1 == "#") ; else{ cout << "密码错误" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(ii3 == 3){ cout << "通风管里有纸条" << endl; cout << "上面有画:" << endl; cout << "III00000A00000K00K0III0OOO0III" << endl; cout << "0I00000A0A0000K0K000I00O0O00I0" << endl; cout << "0I0000A000A000KK0000I00O0O00I0" << endl; cout << "0I000AAAAAAA00K0K000I00O0O00I0" << endl; cout << "III0A0000000A0K00K0III0OOO0III" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } system("cls"); cout << "你找到了大门,上面有锁" << endl; Sleep(1000); if(ys){ cout << "你用牢房里找到的钥匙打开了大门" << endl; cout << "你成功逃了出来!" << endl; vis[2] = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "你没有钥匙" << endl; cout << "钥匙在牢房里" << endl; Sleep(1000); cout << "你身后的狱警们追来了,闯关失败" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else{ system("cls"); return; } } /*剪贴板

任意键继续+清空终端: cout << "请按任意键继续..." << endl; g = _getch(); system("cls");

cout << "请输入:";

cout << "请输入数字:";

cout << "请选择物品进行互动" << endl;

Sleep(1000); */ void lv3(){ cout << "lv3:通道历险" << endl; cout << "你迷失在了一个废弃地下通道里" << endl; cout << "输入td进入关卡,输入#退出" << endl; cout << "请输入:"; string s; cin >> s; system("cls"); if(s == "td"){ bool chuqule = false; bool shoudianung = false; bool dianchi = false; bool yaoshi = false; bool xiaofngfu = false; while(!chuqule){ system("cls"); cout << "请选择物品进行互动" << endl; cout << "1.旧消防栓 2.满地旧报纸 3.破烂的广告栏 4.通道 5.小洞 6.灯" << endl; cout << "请输入数字:"; int i1p; cin >> i1p; system("cls"); if(i1p == 1){ if(!yaoshi){ cout << "钥匙呢?" << endl;; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "里面有消防斧一把" << endl; xiaofngfu = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(i1p == 2){ cout << "你清理了报纸,下面有钥匙和手电筒" << endl; shoudianung = true; yaoshi = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(i1p == 3){ cout << "空空如也的广告栏" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(i1p == 4){ int cnt = 0; int d1,d2,d3,d4,d5; while(cnt <= 5){ cnt++; cout << "--------" << endl; if(cnt == 1){ cout << "前面通道有岔路,往哪走?" << endl; cout << "左边输入1,右边输入2" << endl; cout << "请输入数字:"; cin >> d1; } else if(cnt == 2){ cout << "前面通道有岔路,往哪走?" << endl; cout << "左边输入1,右边输入2" << endl; cout << "请输入数字:"; cin >> d2; } else if(cnt == 3){ cout << "前面通道有岔路,往哪走?" << endl; cout << "左边输入1,右边输入2" << endl; cout << "请输入数字:"; cin >> d3; } else if(cnt == 4){ cout << "前面通道有岔路,往哪走?" << endl; cout << "左边输入1,右边输入2" << endl; cout << "请输入数字:"; cin >> d4; } else if(cnt == 5){ cout << "前面通道有岔路,往哪走?" << endl; cout << "左边输入1,右边输入2" << endl; cout << "请输入数字:"; cin >> d5; } } system("cls"); if(d1 == 1 && d2 == 2 && d3 == 1 && d4 == 1 && d5 == 2){ cout << "走对了" << endl; Sleep(1000); cout << "前面出口被封上了" << endl; Sleep(1000); if(xiaofngfu){ cout << "你用消防斧破开了障碍,逃出生天" << endl; cout << "闯关成功" << endl; vis[3] = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); return; } else{ cout << "你无法破开障碍出去TAT" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else{ cout << "走错了,前面走不通qwq" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(i1p == 5){ if(!shoudianung){ cout << "洞里太暗了" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(shoudianung && !dianchi){ cout << "手电筒没电了:(" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(shoudianung && dianchi){ cout << "你进入了小洞" << endl; cout << "你找到了一张报纸:" << endl; cout << ".x..xxx..x...x..xxx" << endl; cout << "xx....x.xx..xx....x" << endl; cout << ".x...x...x...x...x." << endl; cout << ".x..x....x...x..x.." << endl; cout << "xxx.xxx.xxx.xxx.xxx" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(i1p == 6){ cout << "你把灯的电池拆了下来" << endl; dianchi = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } } else{ system("cls"); return; } } /*剪贴板

任意键继续+清空终端: cout << "请按任意键继续..." << endl; g = _getch(); system("cls");

cout << "请输入:";

cout << "请输入数字:";

cout << "请选择物品进行互动" << endl;

Sleep(1000); */ void lv4(){ cout << "lv4:学校惊魂" << endl; cout << "(注:本关卡无不良引导,请勿在现实中模仿)" << endl; cout << "你该上学了,可是你一点也不想上学,于是你准备逃出来" << endl; cout << "输入xx进入关卡,输入#退出(注意xx全部小写)" << endl; cout << "请输入:"; string s; cin >> s; if(s == "xx"){ cout << "你现在在教室" << endl; int jihui = 5; bool yinshen = false; bool bi = false; while(true){ system("cls"); cout << "请选择物品进行互动" << endl; cout << "1.课桌 2.老师 3.前门 4.后门 5.墙 6.同桌 7.地板" << endl; cout << "请输入数字:"; int i; cin >> i; system("cls"); if(i == 1){ cout << "你从课桌里找到了一个纸条和一支笔" << endl; cout << "内容如下" << endl; Sleep(1000); cout << "" << endl; cout << "= 找不同 =" << endl; cout << "= 1 2 3 4 5 6 7 8 9 10 =" << endl; cout << "= ----------------------=" << endl; cout << "= 1|O O O O O O O O O O =" << endl; cout << "= 2|O O O O O O O O O O =" << endl; cout << "= 3|O O O O O O O O O O =" << endl; cout << "= 4|O O O O O O O O O O =" << endl; cout << "= 5|O O O O O O O O O O =" << endl; cout << "= 6|O O O O 0 O O O O O =" << endl; cout << "= 7|O O O O O O O O O O =" << endl; cout << "= 8|O O O O O O O O O O =" << endl; cout << "= 9|O O O O O O O O O O =" << endl; cout << "=10|O O O O O O O O O O =" << endl; cout << "" << endl; bi = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(i == 2){ cout << "老师叫你回答问题" << endl; cout << "解方程2x+x=6,x是几?" << endl; cout << "请输入:"; int que; cin >> que; system("cls"); if(que == 2){ cout << "答对了,老师让你坐下" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "回答错了,老师让你站着" << endl; cout << "停止10秒" << endl; Sleep(10000); cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(i == 3){ cout << "你站起来,走到了前门,被老师抓住了" << endl; cout << "老师让你站着" << endl; cout << "停止10秒" << endl; Sleep(10000); cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(i == 4){ if(jihui == 0){ cout << "没机会了" << endl; cout << "老老实实待在教室上课吧:)" << endl; cout << "闯关失败" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); return; } cout << "密码是多少(密码是两位数)?(注意你还有" << jihui << "次机会),退出输入1428" << endl; cout << "请输入:"; int mima; cin >> mima; system("cls"); if(mima == 56){ jihui--; cout << "密码对了,门开了,你悄悄逃了出去" << endl; if(!yinshen){ cout << "你被走廊上的老师逮住了" << endl; cout << "停止10秒" << endl; Sleep(10000); cout << "你被送回了教室" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "你穿着隐身服跑了出来,发现学校是个迷宫" << endl; cout << "你不知道往哪里走" << endl; if(!bi){ cout << "你出不去qwq" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "你使用笔挖墙逃了出来" << endl; cout << "挑战成功!" << endl; vis[4] = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); return; } } } else if(mima == 1428){ cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "密码错误" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); jihui--; } } else if(i == 5){ system("cls"); if(!bi){ cout << "你挖不动这墙" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "你挖墙被发现了,老师让你站着" << endl; cout << "停止10秒" << endl; Sleep(10000); cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(i == 6){ cout << "是否告诉ta你逃学的想法?是输入1,否输入2" << endl; int w; cin >> w; if(w == 1){ cout << "同桌举报了你" << endl; cout << "闯关失败" << endl; system("cls"); return; } else{ cout << "你和同桌说话被发现了,老师让你们罚站" << endl; cout << "停止10秒" << endl; Sleep(10000); cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } else if(i == 7){ cout << "你捡起了地上的隐身衣(我也不知道怎么有这东西)" << endl; yinshen = true; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } } else{ system("cls"); return; } } /*剪贴板

任意键继续+清空终端: cout << "请按任意键继续..." << endl; g = _getch(); system("cls");

cout << "请输入:";

cout << "请输入数字:";

cout << "请选择物品进行互动" << endl;

Sleep(1000); */ void lv5(){ cout << "lv5:(剧情闯关)上学迟到了!" << endl; cout << "输入shangxue进入关卡,否则退出" << endl; cout << "请输入:"; string i1; cin >> i1; system("cls"); if(i1 == "shangxue"){ cout << "不好,已经八点了,上学要迟到了!" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); cout << "幸好门没锁" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); cout << "出家门后有岔路" << endl; bool chehuo = false; bool xiaolu = false; bool naicha = false; bool baogonguu = false; bool ungguo = false; while(!chehuo || !xiaolu || !naicha || !baogonguu || !ungguo){ int d1,d2,d3; for(int i = 1;i <= 3;i++){ cout << "前面有岔路,怎么走?1表示左,2表示右" << endl; cout << "请输入数字:"; if(i == 1) cin >> d1; else if(i == 2) cin >> d2; else if(i == 3) cin >> d3; } system("cls"); if(d1 == 1 && d2 == 2 && d3 == 1){ cout << "对话框:" << endl; cout << "----------------------" << endl; Sleep(1000); cout << "交警:这里出车祸了小朋友,不要从这里走" << endl; Sleep(1000); cout << "你:好吧..." << endl; cout << "----------------------" << endl; chehuo = true; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else if(d1 == 2 && d2 == 2 && d3 == 1){ if(!chehuo){ cout << "对话框:" << endl; cout << "----------------------" << endl; Sleep(1000); cout << "工人:小朋友这里在修路,不要来这里" << endl; Sleep(1000); cout << "你:好吧..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "对话框:" << endl; cout << "----------------------" << endl; Sleep(1000); cout << "工人:小朋友这里在修路,不要来这里" << endl; Sleep(1000); cout << "你:可是那边出车祸了走不通" << endl; Sleep(1000); cout << "工人:那好吧,你过去吧,小心点!" << endl; cout << "----------------------" << endl; xiaolu = true; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls");

				cout << "你刚准备穿过小路时,包工头来了" << endl;
				if(!baogonguu){
					cout << "对话框:" << endl;
					cout << "----------------------" << endl;
					Sleep(1000);
					cout << "包工头:小朋友不上学,来这干什么?" << endl;
					Sleep(1000);
					cout << "你:叔叔能让我从这里过吗?那边走不通" << endl;
					Sleep(1000);
					cout << "包工头:帮我买一杯奶茶我就让你过去" << endl;
					Sleep(1000);
					cout << "你:好吧..." << endl;
					cout << "----------------------" << endl;
					baogonguu = true;
					cout << "----------------------" << endl;
					cout << "请按任意键继续..." << endl;
					g = _getch();
					system("cls");
				}
				else if(baogonguu && !naicha){
					cout << "对话框:" << endl;
					cout << "----------------------" << endl;
					Sleep(1000);
					cout << "包工头:小朋友奶茶买到没?" << endl;
					Sleep(1000);
					cout << "你:还没呢..." << endl;
					cout << "----------------------" << endl;
					cout << "请按任意键继续..." << endl;
					g = _getch();
					system("cls");
				}
				else if(baogonguu && naicha){
					cout << "对话框:" << endl;
					cout << "----------------------" << endl;
					Sleep(1000);
					cout << "包工头:小朋友买到奶茶没?" << endl;
					Sleep(1000);
					cout << "你:买到了" << endl;
					Sleep(1000);
					cout << "包工头:好的走吧" << endl;
					cout << "----------------------" << endl;
					ungguo = true;
					cout << "请按任意键继续..." << endl;
					g = _getch();
					system("cls");
				}
			}
		}
		else if(d1 == 1 && d2 == 2 && d3 == 2){
			cout << "对话框:" << endl;
			cout << "----------------------" << endl;
			Sleep(1000);
			cout << "奶茶店店员:小朋友奶茶要来一杯吗" << endl;
			Sleep(1000);
			if(!baogonguu){
				cout << "你:不用了谢谢" << endl;
				cout << "----------------------" << endl;
				cout << "请按任意键继续..." << endl;
				g = _getch();
				system("cls");
			}
			else{
				cout << "你:好的来一杯" << endl;
				Sleep(1000);
				cout << "奶茶店店员:好的~" << endl;
				cout << "----------------------" << endl;
				cout << "你买到了奶茶" << endl;
				naicha = true;
				cout << "----------------------" << endl;
				cout << "请按任意键继续..." << endl;
				g = _getch();
				system("cls");
			}
		}
		else{
			cout << "走不通" << endl;
			cout << "请按任意键继续..." << endl;
			g = _getch();
			system("cls");
		}
		if(!naicha || !xiaolu || !baogonguu || !chehuo || !ungguo){
			cout << "你回到了家门口的位置" << endl;
			cout << "请按任意键继续..." << endl;
			g = _getch();
			system("cls");
		}
	}
	cout << "你穿过了小路,到了学校,幸好功课没落下太多,但以后再也不敢晚起床了..." << endl;
	cout << "闯关成功" << endl;
	vis[5] = true;
	cout << "请按任意键继续..." << endl;
	g = _getch();
	system("cls");
	return;
}
else{
	system("cls");
	return;
}

} /*剪贴板

任意键继续+清空终端: cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls");

cout << "请输入:";

cout << "请输入数字:";

cout << "请选择物品进行互动" << endl;

; */ void lv6(){ cout << "lv6:(剧情闯关)我的六一礼物呢?" << endl; cout << "输入zhao进入关卡,否则退出" << endl; cout << "请输入:"; string s; cin >> s; system("cls"); if(s == "zhao"){ cout << "背景:今天是六一儿童节,爸妈一大早出去了,起床后你发现爸妈没有给你六一礼物,只在床边放了一个纸条" << endl; cout << "------------------------------------------------------------" << endl; cout << "|六一儿童节快乐,我们把六一礼物藏起来了,看看你能不能找到!|" << endl; cout << "------------------------------------------------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); cout << "你走出房门来到客厅" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); bool yangtaikey = false; bool dogkey = false;//到书房 bool meat = false;//喂狗的肉 bool issweep = false;//书房是否打扫 bool sweeper = false;//扫把 bool ladder = false;//梯子 bool unmeat = false; bool smallmeat = false; int floor = 2; while(true){ system("cls"); cout << "你现在在" << floor << "楼" << endl; cout << "----------------------" << endl; cout << "请选择物品进行互动" << endl; if(floor == 1){ cout << "1.厨房 2.杂物间 3.楼梯间 4.楼梯(上2楼)" << endl; cout << "请输入数字:"; int xx; cin >> xx; system("cls"); if(xx == 1){ while(true){ system("cls"); cout << "请选择物品进行互动" << endl; cout << "1.冰箱 2.刀 3.碗 4.离开厨房" << endl; cout << "请输入数字:"; int op; cin >> op; system("cls"); if(op == 1){ if(!unmeat){ cout << "你打开冰箱,取出了肉" << endl; unmeat = true; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else{ cout << "肉已经被你取走了" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } } else if(op == 2){ if(!unmeat){ cout << "你没有肉..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else{ for(int i = 1;i <= 3;i++){ cout << "切肉ing"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } cout << "肉被你切成了小块" << endl; smallmeat = true; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } } else if(op == 3){ if(!unmeat){ cout << "普普通通的碗..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(unmeat && !smallmeat){ cout << "肉太大了装不下..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(smallmeat){ cout << "你用碗装了肉" << endl; meat = true; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } } else if(op == 4){ cout << "你退出了厨房" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); break; } system("cls"); } } else if(xx == 2){ if(!sweeper){ cout << "杂物间里灰太多了,快找扫把清理一下" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(sweeper){ for(int i = 1;i <= 3;i++){ cout << "打扫中ing"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } cout << "你清理了杂物间,找到了梯子" << endl; ladder = true; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else{ cout << "你拿过梯子了..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } } else if(xx == 3){ if(!sweeper){ cout << "你拿到了扫把" << endl; sweeper = true; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else{ cout << "你拿过扫把了..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } } else if(xx == 4){ for(int i = 1;i <= 3;i++){ cout << "上楼ing"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } cout << "你到了2楼" << endl; floor = 2; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } } else if(floor == 2){ cout << "1.你的宠物狗 2.书房 3.爸爸的卧室 4.妈妈的卧室 5.楼梯(下1楼) 6.阳台" << endl; cout << "请输入数字:"; int op; cin >> op; system("cls"); if(op == 1){ if(dogkey){ cout << "狗已经走了..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(unmeat && !smallmeat && !dogkey){ cout << "肉太大了ta不吃..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(smallmeat && !dogkey){ cout << "狗吃完了肉就离开了" << endl; Sleep(1000); cout << "狗窝里有一个钥匙" << endl; Sleep(1000); cout << "你获得了钥匙" << endl; dogkey = true; meat = false; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(!meat && !dogkey){ cout << "狗一直趴在窝里,它好像饿了,喂它一点东西吧" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } } else if(op == 2){ if(!dogkey){ cout << "书房上锁了..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(dogkey){ if(!issweep && !sweeper){ cout << "书房里全是灰,快拿扫把打扫一下!" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); continue; } if(sweeper && !issweep){ for(int i = 1;i <= 3;i++){ cout << "打扫书房ing"; Sleep(500); for(int j = 1;j <= 4;j++){ cout << "."; Sleep(500); } system("cls"); } system("cls"); cout << "你打扫了书房" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } system("cls"); cout << "你发现柜子上面有一张纸条:" << endl; cout << "----------------" << endl; cout << "|书架顶上有线索|" << endl; cout << "----------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); if(ladder){ cout << "你架着梯子来到了书架顶上,发现上面有一把钥匙" << endl; yangtaikey = true; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "书架太高了,你上不去,得要找梯子才行..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } } } else if(op == 3){ if(!dogkey){ cout << "上锁了..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else{ cout << "这个钥匙不匹配,打不开门..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } } else if(op == 4){ if(!dogkey){ cout << "上锁了..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else{ cout << "这个钥匙不匹配,打不开门..." << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } } else if(op == 5){ for(int i = 1;i <= 3;i++){ cout << "下楼ing"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } cout << "你到了1楼" << endl; floor = 1; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(op == 6){ if(dogkey && !yangtaikey){ cout << "这个钥匙不匹配~" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(!yangtaikey){ cout << "你没有钥匙......" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); } else if(yangtaikey){ cout << "你来到了阳台,找到了礼物!" << endl; cout << "闯关成功" << endl; vis[6] = true; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); return; } } system("cls"); } } } else{ system("cls"); return; } } /*剪贴板

任意键继续+清空终端: cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls");

cout << "请输入:";

cout << "请输入数字:";

cout << "请选择物品进行互动" << endl;

*/ void lv7(){ cout << "ps:本关可多次闯关" << endl; cout << "lv7:生物实验考试" << endl; cout << "输入sy进入关卡,否则退出" << endl; cout << "请输入:"; string s; cin >> s; system("cls"); if(s == "sy"){ cout << "你现在在生物实验考试现场,考试内容:初一生物" << endl; cout << "----------------------" << endl; cout << "请按任意键继续" << endl; g = _getch(); system("cls"); cout << "考试要求:成功完成实验即可通关,否则失败" << endl; cout << "----------------------" << endl; cout << "请按任意键继续" << endl; g = _getch(); system("cls"); cout << "os:鉴于实验你可能不会,作者准备了实验手册,考试时可参考" << endl; cout << "----------------------" << endl; cout << "请按任意键继续" << endl; g = _getch(); system("cls"); cout << "实验:培养细菌菌落" << endl; cout << "----------------------" << endl; cout << "请按任意键继续" << endl; g = _getch(); system("cls"); bool chenggong = false;//成功 while(!chenggong){ cout << "请选择物品进行互动" << endl;

	}
	cout << "你成功培养出了细菌菌落" << endl;
	cout << "----------------------" << endl;
	cout << "请按任意键继续" << endl;
	g = _getch();
	system("cls");
	cout << "闯关成功,请按任意键退出" << endl;
	g = _getch();
	system("cls");
	vis[7] = true;
	return;
}
else{
	system("cls");
	return;
}

} void xzgq(){//选择关卡 while(true){ system("cls"); system("color 07"); bool flag = false; int cnt = 0; for(int i = 1;i <= 7/调整点1/;i++){ if(!vis[i]){ flag = true; } else cnt++; } if(!flag){ cout << "恭喜你通关了本游戏" << endl; cout << "按任意键退出游戏" << endl; g = _getch(); cout << "bye~欢迎再来"; return; } cout << "通关进度:" << (cnt1.0) / 7.0/调整点2/ * 100 << "%" << endl; cout << "----------------------" << endl; cout << "已通过的关卡:"; if(cnt == 0){ cout << "(列表为空)"; } else{ for(int i = 1;i <= 6/调整点3/;i++){ if(vis[i]) cout << "lv" << i << " "; } } cout << endl; cout << "----------------------" << endl; cout << "你想挑战第几关?" << endl; cout << "lv1 lv2 lv3 lv4 lv5 lv6 lv7 lv8 lv9 lv10" << endl; cout << "请输入1~10的数字,退出请输114" << endl; cout << "请输入:"; int i1; cin >> i1; system("cls"); if(i1 == 1){ for(int i = 1;i <= 3;i++){ cout << "正在跳转lv1"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } system("cls"); lv1();//关卡1 } else if(i1 == 2){ for(int i = 1;i <= 3;i++){ cout << "正在跳转lv2"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } system("cls"); lv2();//关卡2 } else if(i1 == 3){ for(int i = 1;i <= 3;i++){ cout << "正在跳转lv3"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } system("cls"); lv3();//关卡3 } else if(i1 == 4){ for(int i = 1;i <= 3;i++){ cout << "正在跳转lv4"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } system("cls"); lv4();//关卡4 } else if(i1 == 5){ for(int i = 1;i <= 3;i++){ cout << "正在跳转lv5"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } system("cls"); lv5();//关卡5 } else if(i1 == 6){ for(int i = 1;i <= 3;i++){ cout << "正在跳转lv6"; Sleep(500); for(int j = 1;j <= 3;j++){ cout << "."; Sleep(500); } system("cls"); } system("cls"); lv6();//关卡6 } // else if(i1 == 7){ // for(int i = 1;i <= 3;i++){ // cout << "正在跳转lv7"; // Sleep(500); // for(int j = 1;j <= 3;j++){ // cout << "."; // Sleep(500); // } // system("cls"); // } // system("cls"); // lv7();//关卡7 // } else if(i1 == 114){ cout << "bye~欢迎再来"; return; } else if(i1 > 6/调整点4/){ cout << "暂未开启,敬请期待" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } else{ cout << "输入错误,请重输" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); } system("cls"); } } int main(){ cout << "欢迎来到wqzq的闯关解密类游戏" << endl; cout << "版本号 v6.5"/调整点5/ << endl; cout << "游玩前请仔细阅读说明书" << endl; cout << "版权所有者:万琦子谦(wqzq)" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); cout << "----------------------" << endl; cout << "游戏说明书:" << endl; cout << "1.禁止在公开帖子公布通关攻略,以免影响他人游玩体验" << endl; cout << "2.请不要按键过快,可能发生误触" << endl; cout << "3.剧情需要,请勿在现实生活中模仿" << endl; cout << "4.适合5年级以上人群游玩" << endl; cout << "5.不建议破译源码游玩(如游玩时在源码中找密码、通关方式等),这样体验感会稍差" << endl; cout << "6.如您游玩时发现bug(如编译失败,剧情有漏洞,错别字等),请及时在主域闲聊专用帖@我,需要说明故障问题,作者将尽快处理" << endl; cout << "7.如果您对本游戏或后续关卡的内容有建议,可在主域闲聊专用帖@我,需要说明自己的建议,作者将尽快处理" << endl; cout << "8.由于作者学业原因,更新可能不及时,敬请谅解" << endl; cout << "9.关卡不定期升级、开发补丁、施工,如有变更,会在讨论区公布" << endl; cout << "10.本游戏无不良引导,仅供娱乐" << endl; cout << "11.保证此游戏源码中无可运行的恶意代码,请放心游玩" << endl; cout << "12.保证出版/制作人为**" << endl; cout << "----------------------" << endl; cout << "请按任意键继续..." << endl; g = _getch(); system("cls"); cout << "输入1查看更新日志,输入2直接进入游戏" << endl; cout << "请输入:"; int i1;//日志/游戏 cin >> i1; if(i1 == 1) gxrz();//更新日志 system("cls"); xzgq();//选择关卡 return 0; }