2024年6月月赛--童心未泯,编码筑梦:儿童节C++创意编程大赛-语法组

Exported from /
# 用户 学校 名称 学号 总分数 #1 simo的出游计划 #2 simo的幸运数 #3 simo的出游相片 #4 simo的六一祝福
1 77777777 huruixuan@qq.com 时代一校——胡睿璿 380 100 100 80 100
2 罗友峥 2183747@qq.com 新一阶罗邮政 350 100 100 100 50
3 cainuoyan 84661245@qq.com 南坪校区-冉浩-蔡诺言 330 100 100 80 50
3 吕同学 1944023708@qq.com 鲁能巴蜀中学 新壹街-黄路-吕彦杉 1020260924 330 100 100 80 50
5 周芷乐 25869147@qq.com 就不告诉你小学 南坪校区-冉浩-周芷乐 38 320 100 100 100 20
6 zsj 15423@qq.com 新壹街——周士杰 300 100 100 100 -
6 刁钲洋 diaozhengyang@111.com 重庆市两江新区金山小学栖霞路校区 爱琴海校区-程墨竹-刁钲洋 6号 300 100 100 80 20
6 jianxinming aaaaaadhh@qq.com 爱琴海-蹇心明 300 100 100 100 -
9 徐博研 sdfadfgfdsg432@qq.com 爱琴海-程墨竹-徐博研 280 100 100 80 -
9 徐袅音 54455465@qq.com 源著校区-刘扬-徐袅音 280 100 100 60 20
11 曾浩坤 jsahdjyuy2@qq.com 新壹街校区-曾浩坤 260 100 100 60 -
12 胡宸瑞 2342433259@qq.com Xmw123456 时代二校-胡宸瑞 240 100 100 10 30
13 zsb 9872166773@qq.com 周米骐---爱琴海校区 mickey 230 100 100 - 30
13 jky jky@111.com 美国家里蹲大学 爱琴海校区-江科毅 114514 230 100 100 10 20
15 zhaoyinjie23005 zhaoyinjie23005@qq.com 理工大学 南坪-赵胤杰 8768576 220 100 100 10 10
15 zhuqihang 134234143231@qq.com 新壹街校区—黄路—朱启航 220 100 100 10 10
15 黄彬栩 537465278@qq.com 树人小学 金沙校区(黄彬栩) 19 220 100 100 10 10
15 BUG qicavnl_lje.@qq.com 新壹街-陈学彬 220 100 100 10 10
15 15823239925 safdfdasfa@qq.com 爱琴海校区——吴子轩 220 100 100 10 10
15 konglinghao 7777777@qq.com 时代校区-李清城-孔令皓 <≈>-.算法战神.-<≈> 220 100 100 10 10
15 鲍钰森 1782986109@qq.com 鲍钰森 220 100 100 10 10
15 Viserion zhuogeng@qq.com 重庆两江新区金州小学 爱琴海校区-喻泠兮 36 220 100 100 10 10
23 任子轩 zvt_132@qq.com 新壹街校区-任子轩 210 100 100 0 10
23 黄立信 375085769@qq.com 新壹街 210 100 100 10 -
23 zhy123 2395704315@qq.com 南坪校区-冉浩-朱宏元 210 100 100 10 -
23 杨镇宇 553787747141@qq.com 源著校区-贺怡-杨镇宇 210 100 100 10 -
27 A小涂 111111111@qq.com 和地方萨芬被合并到 时代二校-涂骁恒 x 200 100 100 - -
27 凌胥桐1 19112168775@qq.com 珊瑚康恒小学 南坪校区-冉浩-凌胥桐 34 200 100 100 - 0
27 代一升 2453691475@qq.com 南坪校区-冉浩-代一升 200 100 100 - -
27 陈峻熙 159159@qq.com 巴蜀 新壹街校区-陈峻熙 chenjunxi 200 100 100 - -
27 李睿18 2010@qq.com 新壹街校区-李睿 200 100 100 - -
27 李昕宇 re@qq.com 新壹街-李昕宇 21 200 100 100 - -
27 陈恺曦 eeeee@qq.com 新壹街-陈恺曦 200 100 100 0 -
27 yezixi 791613132@qq.com 无可奉告 南坪校区-冉浩-叶梓曦 5 200 100 100 - -
27 韦舒豪 1472583571@qq.com 重庆市南岸区第110中学 南坪校区-冉浩-韦舒豪 21 200 100 100 - -
27 lzh 1236879521@qq.com 新壹街-李梓豪 200 100 100 - -
27 akm siyuanx123@qq.com 源著校区-刘扬-司沅鑫 2018081901 200 100 100 - -
27 wanglvyan 1345764363@qq.com 时代二校+王吕棪 200 100 100 - -
27 鸭缩毛巾 56987425@qq.com 鸭缩毛巾 200 100 100 - -
27 张振灏 fbgdfhgudfgnd@pp.com 粑粑 新壹街-张振灏 99999999999999999999999 200 100 100 - -
27 zxr ghthy@163.com 新壹街校区.曾祥睿 200 100 100 0 -
27 张煜果 mmxca5520800@qq.com 新壹街校区 - 张煜果 200 100 100 - 0
27 黄皓源 5845684548454886484@qq.com 新壹街校区 黄皓源 200 100 100 0 -
27 吴昀桓 46546515138491@qq.com 新壹街校区----郭老师---吴昀桓 200 100 100 - -
27 marz ffghfghgvmg@163.com 新壹街校区-黄路-马睿泽 200 100 100 - -
27 吴东航 387722836@qq.com 重庆市实验七中 新壹街校区——吴东航 200 100 100 0 -
27 chengjunran 22222321321@QQ.com chengjunran 200 100 100 - -
27 凌小杰 ling0928bailu@hotmail.com 新壹街校区-凌小杰 200 100 100 0 -
27 王斯仪 140422@qq.com 爱琴海校区+王斯仪 200 100 100 - -
27 songbingqi 23645265@qq.com 时代一校-李老师-宋炳奇 200 100 100 - -
27 cky 612535@qq.com 鲁能·巴蜀 新壹街陈科言 200 100 100 - -
27 陈致远Lynn 151523535328282@qq.com 陈致远Lynn 200 100 100 - -
27 taotao 15070149829@163.com 爱琴海-张婷 200 100 100 - -
27 liaoyuhan 18523123792@qq.com aqh.mecha paladin surge! 200 100 100 - -
27 baiziyi 13882757916@qq.com 爱琴海-汪洋-白梓熠 200 100 100 - -
27 刘曦蓓 123589456@qq.com 南坪—刘曦蓓 200 100 100 - -
27 我是你88 1820440070@qq.com 爱琴海-胡某某 200 100 100 - -
27 付靖恩 24368584958@qq.com 爱琴海-ac辞少 200 100 100 - -
27 13883454928 ujhfduo2@qq.com c 新壹街——杨宇轩 杨宇轩 200 100 100 - -
27 fyx 3580884861@qq.com fyx 200 100 100 - -
27 陈星宇 375085799@qq.com 新壹街校区陈星宇 200 100 100 - -
27 wenhao wenhao@qq.com 重庆大学城第一小学校 新壹街校区 文豪 49 200 100 100 - -
27 许峻浩 986544497117@qq.com 爱琴海校区 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------许峻浩 200 100 100 - -
27 董子溪 fankong_hacker@qq.com 源著校区 - 贺怡 - 董子溪 200 100 100 - -
27 扬子鳄 1436075@qq.com 源著校区--贺怡--林子扬 200 100 100 - -
27 李俊熙 15d6k1616y1k515ghf15k1@qq.com 303学校 源著校区-刘扬-李俊熙 422 200 100 100 - -
27 吴宗骏 dcdfvh@qq.com 源著校区-吴宗骏 200 100 100 - -
27 huangchenhao huangchenhao@111.com 爱琴海校区-黄辰浩 200 100 100 - -
27 源著周日群 y@qq.com 源著周日群 200 100 100 - -
27 邓浩泽 13896141829@qq.com 南坪校区-冉浩-邓浩泽 200 100 100 - -
27 唐语堂 18523077320@qq.am 南坪校区-冉浩-唐语堂 78 200 100 100 - -
27 yanruiqi 147258369@qq.com 南坪-鄢睿琦😊 200 100 100 - -
73 李云舒 123549867@qq.com 时代二校-李云舒 180 80 100 - -
73 向浚郗 20130706xjx@qq.com 树人凤天小学 U城校区-向浚郗 29 180 80 100 - 0
73 kim kim@111.com kim 180 80 100 0 -
76 邱越1 45646164631@qq.com 南坪校区-冉浩-邱越 170 100 70 - -
77 向俊宇 ere@qq.com 新村同创国际学校 新壹街(向俊宇) 7 160 100 60 - -
77 王智琦 rgrgrg@qq.com 新壹街校区-王智琦 160 100 60 - -
77 刘育呈 ww@qq.com 新壹街校区-郭老师-刘育呈 160 100 60 - -
77 周芯羽 848@qq.com 新壹街-郭老师-周芯羽 160 100 60 - -
77 陈帅 18702303852@qq.com 时代二校—陈俊燃 https://i.loli.net/2019/08/07/sCgzpy7N4UbATE9.gif 160 100 60 - -
77 罗元邑2 5896654789@qq.com 爱琴海--------------------------------------------------罗元邑 160 100 60 - -
77 李劲松 l54188@qq.com 源著校区-李劲松 160 100 60 - -
77 高晨曦 123456789@h.com U城校区-高晨曦 160 100 60 - 0
85 郑皓文1 123123124@qq.com 时代二校-郑皓文 140 80 60 - -
85 陈柯玮 564564451@qq.com 时代二校-陈柯玮 140 80 60 - -
85 陈廷恩 667382682@qq.com 时代一校-段弼文-陈廷恩 7 140 100 40 - -
85 丁载珅 78s@qq.com 新壹街校区-丁载珅 140 80 60 - -
89 黄星润 13399821393@qq.com 时代一校 段老师 黄星润 120 80 40 - -
90 RanHao 2395704325@qq.com 南坪校区-冉浩-xxx 100 - - 100 -
90 王文灏 15923513298@qq.com 时代一校-支引琳-王文灏 100 100 - - -
90 杨雅童 18983926486@qq.com 时代一校-李清成-杨雅童 100 100 - - -
90 郭睿 14785296@qq.com 南坪校区-冉浩-郭睿 100 100 - - -
90 zhangshuhan 910296338@qq.com 南坪校区-冉浩-张纾菡 100 100 - - -
90 车涌樯 ABF@QQ.COM 新壹街校区-郭老师-车涌樯 100 100 0 - -
90 ylc fskdjh@qq.com ylc 反恐鹅蛋 100 100 - - -
90 吴鑫鹏 453435435435@qq.com 新壹街校区-吴鑫鹏 100 100 - - -
90 反恐傻蛋 yjthtyjyi76ri7@qq.com 新壹街校区-黄路-陈廷轩 100 100 - - -
90 张睎宇 18580670320@qq.com 时代二校-张睎宇 100 100 0 - -
90 王子航 13996021991@qq.com 王子航 100 100 - - -
90 罗翊宸 15123245877@qq.com 罗翊宸 100 100 - - -
90 fengyuanzheng 1564654651@qq.com 八中 我和赵梓晴不是一般的亲密 211i12u3y43yu2hy4und 100 100 - - -
90 xuweiming 15730434299@qq.com xuweiming 100 100 - - -
104 唐世睿 1800838713@qq.com 时代二校-唐世睿 80 80 0 - -
104 陈信羽 1472543658@qq.com 南坪校区-冉浩-陈信羽 80 80 - - -
104 唐培峻 13631585308@qq.com 时代一校-唐培峻 80 80 0 - -
104 肖杰睿 15123137133@qq.com 时代一校-肖杰睿 80 80 - - -
104 唐培轩 18323010183@qq.com 时代一校,唐培轩 80 80 - - -
104 郝泽涵 18229089158@qq.com 时代一校-支引琳-郝泽涵 80 80 - - -
104 刘子骏 18716364032@qq.com 时代一校-支引琳-刘子骏 80 80 - 0 -
104 张柏森 13883477810@qq.com 时代一校-段老师-张柏森 80 80 - - -
104 张晨颢 13883528889@qq.com 时代二校-张晨颢 80 80 - - -
104 wangranyimo 224yueg@qq.com U城校区——王冉燚默 80 80 - - -
114 mzr131113 ma13es@qq.com 爱琴海-程墨竹-马琢然 60 - 60 - -
114 1234567A 250250SB@qq.com 爱琴海 -- 邓皓天 60 60 - - -
116 bvvd rogformula@163.com bvvd 50 0 0 0 50
117 鄢爱宸 1593572586@qq.com 南坪-鄢爱宸 40 0 40 - -
117 宋坤霖 15823368599@qq.com 时代二校-宋坤霖 40 40 - - -
119 hdq 765666@qq.com asdasd hdq asdasd 20 20 - - -
120 冉浩然 1625763723@qq.com 时代二校——冉浩然 0 0 0 - -
120 段昱同 17749939310@qq.com 南平——段昱同 0 0 - - -
120 李秉轩 345640586747539039@qq.com 时代二校-杨林-李秉轩 0 0 - - -
120 wushengyue CHNJJUJM22@qq.com 时代一校 -支引琳-武圣越 0 0 - - -
120 zxc 12312asd@qq.com 爱琴海-程老师-祝熙承 0 0 0 - -
120 杜雨泽 18983770314@qq.com 不祥 时代二校-杜雨泽 不祥 0 0 - - -
120 梁程翔 15223400112@qq.com 时代二校-梁程翔 0 0 - - -
120 陈诺 5165165@qq.com 源著天街 陈诺 0 0 0 - -
128 kongql kongql@xiaoma.cn 时代校区-孔奇林 0 - - - -
128 AI创客 283740412@qq.com 爱琴海校区——余炜桐 0 - - - -
128 黄俊乔 90677163@qq.com 爱琴海校区黄俊乔 0 - - - -
128 chenruoxi chenruoxi@qq.com chenruoxi 0 - - - -
128 10255 1016884202@qq.com 时代一校-杨林-xxx 0 - - - -
128 小鲨鱼 78956465@qq.com 时代二校-杨奕凡 0 - - - -
128 zhangluyang 123486579@qq.com 南坪 张路阳 0 - - - -
128 杨淇瑞29 48954156@qq.com 新一街杨淇瑞 0 - - - -
128 反恐皮蛋 guozh@xiaoma.cn XSM 反恐皮蛋 23 0 - - - -
128 徐敬焜 2395744315@qq.com 南坪校区-冉浩-徐敬焜 0 - - - -
128 Mr_D 763698671@qq.com Mr_D 0 - - - -
128 tongxiao 1214028993@qq.com tongxiao 0 - - - -
128 周子义 12512312521@qq.com 时代一校-周子义 0 - - - -
128 zyl sdlfjsdl@163.com zyl 0 - - - -
128 黄子轩 13883622926@qq.com 时代二校-李老师-黄子轩 0 - - - -
128 金天翊 19188472097@qq.com 时代二校-金天翊 0 - - - -
128 段秉辰 18883211313@qq.com 时代一校-李清城-段秉辰 0 - - - -
128 岑昶乐 hi_hi_hi_hi@163.comm 新壹街校区—黄路—岑昶乐 0 - - - -
128 xiongxuanhang 251231531@qq.com 新壹街—熊轩杭 0 - - - -
128 李禹呈 lyc@qq.com 时代一校-李清城-李禹呈 0 - - - -
128 林熙俊 135246375@qq.com 林熙俊 0 - - - -
128 8086 iytruytrfhcgfbcb@qq.com 8086 0 - - - -
128 曹星羽 35768544@qq.con 时代二校 曹星羽 0 - - - -
128 煞笔笔 123456788@qq.com 时代二校-陈曦 0 - - - -
128 肖宇航 xyh123@qq.com 吹逝员 sdex-肖宇航 吹逝员 0 - - - -
128 shihaocheng 623589658@QQ.com 时代二校--施皓宬 0 - - - -
128 mayuhang 1502131190@qq.com 时代天街 马渝杭 0 - - - -
128 曹皓扬 153454324657626574598@qq.com 彩云湖小学 曹皓扬 20190440 0 - - - -
128 wuyou 12434546@qq.com #include #include #include #include #include using namespace std; struct IDname { int geshu; string NAME; }; IDname jue_se[100]; struct ID { int num; bool life; string name; int know; int how; }; ID player[21]; int n, MY, kill1, kill2; char a; bool jieyao = 1, duyao = 1; int lieren, shouwei = 0; void init1() { jue_se[1].NAME = "村民 "; jue_se[2].NAME = "狼人 "; jue_se[3].NAME = "女巫 "; jue_se[4].NAME = "预言家 "; jue_se[5].NAME = "猎人 "; jue_se[6].NAME = "守卫 "; } void init2(int nn) { switch (nn) { case 6: jue_se[1].geshu = 3; jue_se[2].geshu = 2; jue_se[3].geshu = 1; jue_se[4].geshu = 0; jue_se[5].geshu = 0; jue_se[6].geshu = 0; break; case 7: jue_se[1].geshu = 3; jue_se[2].geshu = 2; jue_se[3].geshu = 1; jue_se[4].geshu = 1; jue_se[5].geshu = 0; jue_se[6].geshu = 0; break; case 8: jue_se[1].geshu = 3; jue_se[2].geshu = 3; jue_se[3].geshu = 1; jue_se[4].geshu = 1; jue_se[5].geshu = 0; jue_se[6].geshu = 0; break; case 9: jue_se[1].geshu = 3; jue_se[2].geshu = 3; jue_se[3].geshu = 1; jue_se[4].geshu = 1; jue_se[5].geshu = 1; jue_se[6].geshu = 0; break; case 10: jue_se[1].geshu = 4; jue_se[2].geshu = 3; jue_se[3].geshu = 1; jue_se[4].geshu = 1; jue_se[5].geshu = 1; jue_se[6].geshu = 0; break; case 11: jue_se[1].geshu = 4; jue_se[2].geshu = 4; jue_se[3].geshu = 1; jue_se[4].geshu = 1; jue_se[5].geshu = 1; jue_se[6].geshu = 0; break; case 12: jue_se[1].geshu = 4; jue_se[2].geshu = 4; jue_se[3].geshu = 1; jue_se[4].geshu = 1; jue_se[5].geshu = 1; jue_se[6].geshu = 1; break; default: cout << "输入错误,再见" << endl; exit(0); break; } } int van[10] = { 7,4,6,43,35,1,2,8,20,19 }; void init3(int nn) { srand(time(0)); Sleep(rand() % 44); int x = 10000; int t = rand(); srand(time(NULL)); int y = van[(rand() % 100 * van[rand() % 10] + t) % 10]; if (nn <= 6) x = abs(x * 6 / y) % 3 + 1; else if (nn <= 8) x = abs(x * 7 / y) % 4 + 1; else if (nn <= 11) x = abs(x * 8 / y) % 5 + 1; else if (nn <= 14) x = abs(x * 9 / y) % 6 + 1; do { if (nn <= 6) x = x % 3 + 1; else if (nn <= 8) x = x % 4 + 1; else if (nn <= 11) x = x % 5 + 1; else if (nn <= 14) x = x % 6 + 1; if (jue_se[x].geshu > 0) { player[nn].name = jue_se[x].NAME; if (player[nn].name == "猎人 ") lieren = nn; if (player[nn].name == "守卫 ") shouwei = nn; player[nn].life = 1; player[nn].num = nn; player[nn].know = 0; jue_se[x].geshu--; player[nn].how = 0; break; } } while (jue_se[x].geshu == 0); } void printhhh() { int cm = 0; int sz = 0; for (int i = 1; i <= n; i++) { if (player[i].life == 0) continue; else if (player[i].name == "村民 ") cm++; else if (player[i].name == "女巫 " || player[i].name == "预言家 " || player[i].name == "猎人 " || player[i].name == "守卫 ") sz++; } if (sz == 0 || cm == 0) cout << "狼人阵营胜利" << endl; else cout << "好人阵营胜利" << endl; for (int i = 1; i <= n; i++) { cout << left << setw(3) << player[i].num << ": " << player[i].name << " "; if (player[i].life == 0) cout << "死亡" << "\t"; else cout << "存活" << "\t"; if (player[i].how == 0) cout << "最终存活 " << endl; else if (player[i].how == 1) cout << "最终被狼人杀死" << endl; else if (player[i].how == 2) cout << "最终被投票投死" << endl; else if (player[i].how == 3) cout << "最终被女巫毒死" << endl; else if (player[i].how == 4) cout << "最终被猎人射杀" << endl; } system("pause"); system("pause"); system("pause"); } void print(int day, int ti) { HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE); if (ti == 0) SetConsoleTextAttribute(handle, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE | FOREGROUND_INTENSITY); else SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE); cout << "\t\t\t\t第" << day << "天 "; if (ti == 0) cout << "白天" << endl; else cout << "夜晚" << endl; cout << "我的位置:" << MY << "号" << endl; for (int i = 1; i <= 6; i++) { cout << player[i].num << "号位 "; } cout << endl; for (int i = 1; i <= 6; i++) { if (player[i].life == 1) { if (ti == 0) SetConsoleTextAttribute(handle, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE | FOREGROUND_INTENSITY | FOREGROUND_GREEN); else SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | FOREGROUND_GREEN); cout << "存活 "; } else { if (ti == 0) SetConsoleTextAttribute(handle, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE | FOREGROUND_INTENSITY | FOREGROUND_RED); else SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | FOREGROUND_RED); cout << "已死亡 "; } } if (ti == 0) SetConsoleTextAttribute(handle, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE | FOREGROUND_INTENSITY); else SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE); cout << endl; for (int i = 1; i <= 6; i++) { if (player[i].know == 0) cout << "未知 "; else if (player[i].know == 1) { if (player[i].name == "狼人 ") cout << "狼人 "; else cout << "好人 "; } else if (player[i].know == 2) cout << player[i].name << " "; } cout << endl << endl; for (int i = 7; i <= n; i++) { if (i < 10) cout << player[i].num << "号位 "; else cout << player[i].num << "号位 "; } cout << endl; for (int i = 7; i <= n; i++) { if (player[i].life == 1) { if (ti == 0) SetConsoleTextAttribute(handle, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE | FOREGROUND_INTENSITY | FOREGROUND_GREEN); else SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | FOREGROUND_GREEN); cout << "存活 "; } else { if (ti == 0) SetConsoleTextAttribute(handle, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE | FOREGROUND_INTENSITY | FOREGROUND_RED); else SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | FOREGROUND_RED); cout << "已死亡 "; } } if (ti == 0) SetConsoleTextAttribute(handle, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE | FOREGROUND_INTENSITY); else SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE); cout << endl; for (int i = 7; i <= n; i++) { if (player[i].know == 0) cout << "未知 "; else if (player[i].know == 1) { if (player[i].name == "狼人 ") cout << "狼人 "; else cout << "好人 "; } else if (player[i].know == 2) cout << player[i].name << " "; } cout << endl << endl; } int shou = 0; void shoushui(int hhh, int hhhh) { int x; Sleep(3000); system("cls"); print(hhh, hhhh); cout << "守~卫~请~睁~眼~~~" << endl; Sleep(3000); system("cls"); print(hhh, hhhh); if (MY == shouwei && player[MY].life == 1) { cout << "请问你要守护谁?" << endl << "输入:"; cin >> x; while (x == shou || x<1 || x>n || player[x].life == 0) { cout << "输入错误,请重新输入" << endl << "输入:"; cin >> x; } shou = x; } else if (player[shouwei].life == 1) { cout << "请问你要守护谁?" << endl; Sleep(rand() % 98); srand(time(0)); x = rand() % n + 1; while (x == shou || player[x].life == 0) { Sleep(rand() % 98); srand(time(0)); x = rand() % n + 1; } shou = x; } else { cout << "请问你要守护谁?" << endl; Sleep(3000); shou = -1; } Sleep(3000); system("cls"); print(hhh, hhhh); cout << "守~卫~请~闭~眼~~~" << endl; } struct tou { int xxx; int num; int toupiaoquan; }; tou TOU[13]; bool cmp(tou x, tou y) { if (x.xxx == y.xxx) return x.num < y.num; return x.xxx > y.xxx; } bool cmp1(tou x, tou y) { return x.num < y.num; } void toupiao(int ddd, int nnn) { //--------1-------- int x; Sleep(2000); system("cls"); print(ddd, nnn); cout << "现在大家请投票"; for (int i = 1; i <= 3; i++) { cout << "."; Sleep(500); } cout << endl; for (int i = 1; i <= n; i++) { TOU[i].num = i; TOU[i].toupiaoquan = 1; TOU[i].xxx = 0; } for (int i = 1; i <= n; i++) { if (player[i].life == 1) { Sleep(3000); if (i == MY) { cout << "请投票...(0弃权)" << endl; cin >> x; while (player[x].life == 0 && x != 0) { cin >> x; } if (x == 0) cout << MY << "号玩家弃权" << endl; else cout << MY << "号玩家投给了" << x << "号玩家" << endl; } else { srand(time(0)); if (player[i].name == "狼人 ") { x = rand() % (n + 1); while (x != 0 && (player[x].life == 0 || player[x].name == "狼人 " || x == i)) { Sleep(rand() % 98); srand(time(0)); x = rand() % (n + 1); } if (x == 0) cout << i << "号玩家弃权" << endl; else cout << i << "号玩家投给了" << x << "号玩家" << endl; } else if (player[i].name == "预言家 ") { x = rand() % (n + 1); while (x != 0 && (player[x].life == 0 || player[x].name != "狼人 " || x == i)) { Sleep(rand() % 98); srand(time(0)); x = rand() % (n + 1); } if (x == 0) cout << i << "号玩家弃权" << endl; else cout << i << "号玩家投给了" << x << "号玩家" << endl; } else { x = rand() % (n + 1); while (x != 0 && (player[x].life == 0 || x == i)) { Sleep(rand() % 98); srand(time(0)); x = rand() % (n + 1); } if (x == 0) cout << i << "号玩家弃权" << endl; else cout << i << "号玩家投给了" << x << "号玩家" << endl; } } if (x != 0) TOU[x].xxx++; } } Sleep(3000); sort(TOU + 1, TOU + n + 1, cmp); if (TOU[2].xxx != TOU[1].xxx) { cout << "投票结束," << TOU[1].num << "号投票出局" << endl; player[TOU[1].num].life = 0; player[TOU[1].num].how = 2; Sleep(3000); return; } else { TOU[1].toupiaoquan = 0; TOU[2].toupiaoquan = 0; system("cls"); print(ddd, nnn); cout << TOU[1].num << "号," << TOU[2].num << "号"; int i; for (i = 3; i <= n; i++) { if (TOU[i].xxx == TOU[1].xxx) { TOU[i].toupiaoquan = 0; cout << "," << TOU[i].num << "号"; } else break; } if (i == n + 1) { for (int i = 1; i <= n; i++) TOU[i].toupiaoquan = 1; } cout << "平票" << endl; } //--------2-------- sort(TOU + 1, TOU + n + 1, cmp1); cout << "请再次投票"; for (int i = 1; i <= 3; i++) { cout << "."; Sleep(500); } cout << endl; for (int i = 1; i <= n; i++) { if (player[i].life == 1 && TOU[i].toupiaoquan == 1) { Sleep(3000); if (i == MY) { cout << "请投票...(0弃权)" << endl; cin >> x; while ((player[x].life == 0 || TOU[x].toupiaoquan == 1) && x != 0) { cin >> x; } if (x == 0) cout << MY << "号玩家弃权" << endl; else cout << MY << "号玩家投给了" << x << "号玩家" << endl; } else { srand(time(0)); if (player[i].name == "狼人 ") { x = rand() % (n + 1); while (x != 0 && (player[x].life == 0 || player[x].name == "狼人 " || x == i || TOU[x].toupiaoquan == 1)) { srand(time(0)); x = rand() % (n + 1); } if (x == 0) cout << i << "号玩家弃权" << endl; else cout << i << "号玩家投给了" << x << "号玩家" << endl; } else if (player[i].name == "预言家 ") { x = rand() % (n + 1); while (x != 0 && (player[x].life == 0 || player[x].name != "狼人 " || x == i || TOU[x].toupiaoquan == 1)) { srand(time(0)); x = rand() % (n + 1); } if (x == 0) cout << i << "号玩家弃权" << endl; else cout << i << "号玩家投给了" << x << "号玩家" << endl; } else { x = rand() % (n + 1); while (x != 0 && (player[x].life == 0 || x == i || TOU[x].toupiaoquan == 1)) { srand(time(0)); x = rand() % (n + 1); } if (x == 0) cout << i << "号玩家弃权" << endl; else cout << i << "号玩家投给了" << x << "号玩家" << endl; } } if (x != 0 && TOU[i].toupiaoquan == 1) TOU[x].xxx++; } } Sleep(3000); sort(TOU + 1, TOU + n + 1, cmp); if (TOU[2].xxx != TOU[1].xxx) { cout << "投票结束," << TOU[1].num << "号投票出局" << endl; player[TOU[1].num].life = 0; player[TOU[1].num].how = 2; Sleep(3000); return; } else { TOU[1].toupiaoquan = 0; TOU[2].toupiaoquan = 0; system("cls"); print(ddd, nnn); cout << TOU[1].num << "号," << TOU[2].num << "号"; int i; for (i = 3; i <= n; i++) { if (TOU[i].xxx == TOU[1].xxx) { TOU[i].toupiaoquan = 0; cout << "," << TOU[i].num << "号"; } else break; } if (i == n + 1) { for (int i = 1; i <= n; i++) TOU[i].toupiaoquan = 1; } cout << "平票" << endl; } //--------3-------- sort(TOU + 1, TOU + n + 1, cmp1); cout << "请再次投票"; for (int i = 1; i <= 3; i++) { cout << "."; Sleep(500); } cout << endl; for (int i = 1; i <= n; i++) { if (player[i].life == 1 && TOU[i].toupiaoquan == 1) { Sleep(3000); if (i == MY) { cout << "请投票...(0弃权)" << endl; cin >> x; while ((player[x].life == 0 || TOU[x].toupiaoquan == 1) && x != 0) { cin >> x; } if (x == 0) cout << MY << "号玩家弃权" << endl; else cout << MY << "号玩家投给了" << x << "号玩家" << endl; } else { srand(time(0)); if (player[i].name == "狼人 ") { x = rand() % (n + 1); while (x != 0 && (player[x].life == 0 || player[x].name == "狼人 " || x == i || TOU[x].toupiaoquan == 1)) { srand(time(0)); x = rand() % (n + 1); } if (x == 0) cout << i << "号玩家弃权" << endl; else cout << i << "号玩家投给了" << x << "号玩家" << endl; } else if (player[i].name == "预言家 " || player[i].name == "猎人 ") { x = rand() % (n + 1); while (x != 0 && (player[x].life == 0 || player[x].name != "狼人 " || x == i || TOU[x].toupiaoquan == 1)) { srand(time(0)); x = rand() % (n + 1); } if (x == 0) cout << i << "号玩家弃权" << endl; else cout << i << "号玩家投给了" << x << "号玩家" << endl; } else { x = rand() % (n + 1); while (x != 0 && (player[x].life == 0 || x == i || TOU[x].toupiaoquan == 1)) { srand(time(0)); x = rand() % (n + 1); } if (x == 0) cout << i << "号玩家弃权" << endl; else cout << i << "号玩家投给了" << x << "号玩家" << endl; } } if (x != 0 && TOU[i].toupiaoquan == 1) TOU[x].xxx++; } } Sleep(3000); sort(TOU + 1, TOU + n + 1, cmp); if (TOU[2].xxx != TOU[1].xxx) { cout << "投票结束," << TOU[1].num << "号投票出局" << endl; player[TOU[1].num].life = 0; player[TOU[1].num].how = 2; } else { cout << "投票结束,无人出局" << endl; } Sleep(5000); } bool game_over() { int pingmin = 0; int langren = 0; int shenzhi = 0; for (int i = 1; i <= n; i++) { if (player[i].life == 0) continue; if (player[i].name == "狼人 ") langren++; else if (player[i].name == "村民 ") pingmin++; else if (player[i].name == "女巫 " || player[i].name == "预言家 " || player[i].name == "猎人 ") shenzhi++; } if (shenzhi == 0 || langren == 0 || pingmin == 0) return 1; return 0; } void night() { system("cls"); system("color 0f"); print(1, 1); cout << "天~黑~请~闭~眼~~~" << endl; if (n >= 12) shoushui(1, 1); Sleep(3000); system("cls"); print(1, 1); cout << "狼~人~请~睁~眼~~~" << endl; if (player[MY].name == "狼人 ") { Sleep(1000); cout << "你的同伴有:"; for (int i = 1; i <= n; i++) { if (i == MY) continue; if (player[i].name == "狼人 ") { cout << player[i].num << "号 "; player[i].know = 2; } } Sleep(3000); cout << endl << "请问你们要杀谁:" << endl << "输入:"; cin >> kill1; Sleep(1500); system("cls"); print(1, 1); cout << "今晚你们要杀的是" << kill1 << "号玩家" << endl; } else { Sleep(4000); system("cls"); print(1, 1); cout << "请问你们要杀谁?" << endl; do { Sleep(rand() % 18); srand(time(0)); int x = rand() % n + 1; if (player[x].name != "狼人 " && player[x].life == 1) { kill1 = x; break; } } while (1); Sleep(5000); } Sleep(3000); system("cls"); print(1, 1); cout << "狼~人~请~闭~眼~~~" << endl; Sleep(2000); system("cls"); print(1, 1); cout << "女~巫~请~睁~眼~~~" << endl; Sleep(2000); system("cls"); print(1, 1); if (player[MY].name == "女巫 " && player[MY].life == 1) { Sleep(1000); if (jieyao == 1) { cout << "今晚" << kill1 << "号玩家被杀" << endl; Sleep(500); cout << "请问你要救吗???" << endl << "A. 救 B.不救" << endl << "输入:"; cin >> a; if (a == 'A') { system("cls"); print(1, 1); cout << "请问你要毒吗???" << endl; Sleep(2000); system("cls"); print(1, 1); cout << "今晚" << kill1 << "号玩家被你解救" << endl; jieyao = 0; if (shou != kill1) kill1 = 0; } else { if (shou == kill1) kill1 = 0; Sleep(2000); system("cls"); print(1, 1); cout << "请问你要毒吗???" << endl << "A. 毒 B.不毒" << endl << "输入:"; cin >> a; if (a == 'A') { cout << "请问你要毒谁???" << endl << "输入:"; cin >> kill2; while (player[kill2].life != 1) { cout << "输入错误,请重新输入:" << endl; cin >> kill2; } duyao = 0; } } } else { if (shou == kill1) kill1 = 0; Sleep(2000); system("cls"); print(1, 1); cout << "请问你要毒吗???" << endl << "A. 毒 B.不毒" << endl << "输入:"; cin >> a; if (a == 'A') { cout << "请问你要毒谁???" << endl << "输入:"; cin >> kill2; while (player[kill2].life != 1) { cout << "输入错误,请重新输入:" << endl; cin >> kill2; } duyao = 0; } } } else { bool b = 0; cout << "请问你是否要用解药???" << endl; int FFF = 0, kkkk; for (int i = 1; i <= n; i++) { if (player[i].life == 1 && player[i].name == "村民 ") FFF++; if (player[i].name == "女巫 ") kkkk = i; } if (jieyao == 1 && player[kkkk].life == 1) { if (FFF == 1) { if (shou == kill1) jieyao = 1; else jieyao = 0; kill1 = 0; b = 1; } else for (int i = 1; i <= n; i++) { if (player[i].name == "女巫 " && kill1 == i) { kill1 = 0; if (shou == kill1) jieyao = 1; else jieyao = 0; b = 1; break; } else if (player[i].name == "预言家 " && kill1 == i) { kill1 = 0; if (shou == kill1) jieyao = 1; else jieyao = 0; b = 1; break; } } } Sleep(3000); if (b == 0 && duyao == 1 && player[kkkk].life == 1) { system("cls"); print(1, 1); cout << "请问你是否要用毒药???" << endl; srand(time(0)); int x = rand() % 2; Sleep(1500); cout << "请问你要毒谁???" << endl; if (x == 1) { duyao = 0; int y = rand() % n + 1; while ((player[y].name == "女巫 " || player[y].name == "预言家 " || y == kill1) || player[y].life == 0) y = rand() % n + 1; kill2 = y; } } else { Sleep(3000); system("cls"); print(1, 1); cout << "请问你是否要用毒药???" << endl; Sleep(3000); cout << "请问你要毒谁???" << endl; Sleep(3000); } } Sleep(3000); system("cls"); print(1, 1); cout << "女~巫~请~闭~眼~~~" << endl; if (n > 6) { Sleep(3000); system("cls"); print(1, 1); cout << "预~言~家~请~睁~眼~~~" << endl; if (player[MY].name == "预言家 ") { Sleep(3000); cout << "请问你想查验谁???" << endl << "输入:"; int x; cin >> x; player[x].know = 1; Sleep(2000); system("cls"); print(1, 1); cout << "他的身份是:"; if (player[x].name == "狼人 ") cout << "狼人" << endl; else cout << "好人" << endl; Sleep(3000); } else { Sleep(3000); cout << "请问你想查验谁???" << endl; Sleep(3000); system("cls"); print(1, 1); cout << "他的身份是:......"; Sleep(3000); } Sleep(3000); system("cls"); print(1, 1); cout << "预~言~家~请~闭~眼~~~" << endl; } Sleep(3000); if (kill1 != 0) player[kill1].life = 0; if (kill2 != 0) player[kill2].life = 0; player[kill1].how = 1; player[kill2].how = 3; system("cls"); system("color F0"); print(2, 0); } void night2(int hhh, int hhhh) { system("cls"); system("color 0f"); print(hhh, hhhh); cout << "天~黑~请~闭~眼~~~" << endl; if (n >= 12) shoushui(hhh, hhhh); Sleep(3000); system("cls"); print(hhh, hhhh); cout << "狼~人~请~睁~眼~~~" << endl; if (player[MY].name == "狼人 " && player[MY].life == 1) { Sleep(3000); cout << endl << "请问你们要杀谁:" << endl << "输入:"; cin >> kill1; Sleep(1500); system("cls"); print(hhh, hhhh); cout << "今晚你们要杀的是" << kill1 << "号玩家" << endl; } else { Sleep(4000); system("cls"); print(hhh, hhhh); cout << "请问你们要杀谁?" << endl; do { srand(time(0)); int x = rand() % n + 1; if (player[x].name != "狼人 " && player[x].life == 1) { kill1 = x; break; } } while (1); Sleep(5000); } Sleep(3000); system("cls"); print(hhh, hhhh); cout << "狼~人~请~闭~眼~~~" << endl; Sleep(2000); system("cls"); print(hhh, hhhh); cout << "女~巫~请~睁~眼~~~" << endl; Sleep(2000); system("cls"); print(hhh, hhhh); if (player[MY].name == "女巫 " && player[MY].life == 1) { Sleep(1000); if (jieyao == 1) { cout << "今晚" << kill1 << "号玩家被杀" << endl; Sleep(500); cout << "请问你要救吗???" << endl << "A. 救 B.不救" << endl << "输入:"; cin >> a; if (a == 'A') { system("cls"); print(hhh, hhhh); cout << "请问你要毒吗???" << endl; Sleep(2000); system("cls"); print(hhh, hhhh); cout << "今晚" << kill1 << "号玩家被你解救" << endl; jieyao = 0; if (shou != kill1) kill1 = 0; } else { if (shou == kill1) kill1 = 0; Sleep(2000); system("cls"); print(hhh, hhhh); cout << "请问你要毒吗???" << endl << "A. 毒 B.不毒" << endl << "输入:"; cin >> a; if (a == 'A') { cout << "请问你要毒谁???" << endl << "输入:"; cin >> kill2; while (player[kill2].life != 1) { cout << "输入错误,请重新输入:" << endl; cin >> kill2; } duyao = 0; } } } else if (duyao == 1) { if (shou == kill1) kill1 = 0; Sleep(2000); system("cls"); print(hhh, hhhh); cout << "请问你要毒吗???" << endl << "A. 毒 B.不毒" << endl << "输入:"; cin >> a; if (a == 'A') { cout << "请问你要毒谁???" << endl << "输入:"; cin >> kill2; while (player[kill2].life != 1) { cout << "输入错误,请重新输入:" << endl; cin >> kill2; } duyao = 0; } } else { Sleep(2000); system("cls"); print(hhh, hhhh); cout << "请问你要毒吗???" << endl; } } else { bool b = 0; cout << "请问你是否要用解药???" << endl; int FFF = 0, kkkk; for (int i = 1; i <= n; i++) { if (player[i].life == 1 && player[i].name == "村民 ") FFF++; if (player[i].name == "女巫 ") kkkk = i; } if (jieyao == 1 && player[kkkk].life == 1) { if (FFF == 1) { if (shou == kill1) jieyao = 1; else jieyao = 0; kill1 = 0; b = 1; } else for (int i = 1; i <= n; i++) { if (player[i].name == "女巫 " && kill1 == i) { kill1 = 0; if (shou == kill1) jieyao = 1; else jieyao = 0; b = 1; break; } else if (player[i].name == "预言家 " && kill1 == i) { kill1 = 0; if (shou == kill1) jieyao = 1; else jieyao = 0; b = 1; break; } } } Sleep(3000); if (b == 0 && duyao == 1 && player[kkkk].life == 1) { system("cls"); print(hhh, hhhh); cout << "请问你是否要用毒药???" << endl; srand(time(0)); int x = rand() % 2; Sleep(1500); cout << "请问你要毒谁???" << endl; if (x == 1) { duyao = 0; int y = rand() % n + 1; while ((player[y].name == "女巫 " || player[y].name == "预言家 " || y == kill1) || player[y].life == 0) y = rand() % n + 1; kill2 = y; } } else { Sleep(3000); system("cls"); print(hhh, hhhh); cout << "请问你是否要用毒药???" << endl; Sleep(3000); cout << "请问你要毒谁???" << endl; Sleep(3000); } } Sleep(3000); system("cls"); print(hhh, hhhh); cout << "女~巫~请~闭~眼~~~" << endl; if (n > 6) { Sleep(3000); system("cls"); print(hhh, hhhh); cout << "预~言~家~请~睁~眼~~~" << endl; if (player[MY].name == "预言家 " && player[MY].life == 1) { Sleep(3000); cout << "请问你想查验谁???" << endl << "输入:"; int x; cin >> x; player[x].know = 1; Sleep(2000); system("cls"); print(hhh, hhhh); cout << "他的身份是:"; if (player[x].name == "狼人 ") cout << "狼人" << endl; else cout << "好人" << endl; Sleep(3000); } else { Sleep(3000); cout << "请问你想查验谁???" << endl; Sleep(3000); system("cls"); print(hhh, hhhh); cout << "他的身份是:......"; Sleep(3000); } Sleep(3000); system("cls"); print(hhh, hhhh); cout << "预~言~家~请~闭~眼~~~" << endl; } Sleep(3000); if (kill1 != 0) player[kill1].life = 0; if (kill2 != 0) player[kill2].life = 0; player[kill1].how = 1; player[kill2].how = 3; system("cls"); system("color F0"); print(hhh + 1, 0); } bool lr = 0; void panduanlieren() { if (lr == 1) return; if (MY == lieren) { cout << "请射杀一名玩家" << endl; int x; cin >> x; while (player[x].life != 1) { cout << "输入错误,请重新输入" << endl; cin >> x; } Sleep(1000); cout << lieren << "号猎人发动技能,开枪带走了" << x << "号" << endl; player[x].life = 0; player[x].how = 4; } else if (n >= 9) { srand(time(0)); int x = rand() % n + 1; while (player[x].life != 1) { x = rand() % n + 1; } Sleep(1000); cout << lieren << "号猎人发动技能,开枪带走了" << x << "号" << endl; player[x].life = 0; player[x].how = 4; } lr = 1; } void print1() { cout << "天亮了,昨晚"; if (kill1 != 0 || kill2 != 0) { cout << kill1 << "号"; if (kill2 != 0) { cout << "," << kill2 << "号"; kill2 = 0; } cout << "被杀" << endl; } else cout << "是平安夜" << endl; } int main() { system("cls"); cout << " " << "狼人杀online" << endl; cout << "请输入人数个数:" << endl; scanf("%d", &n); cout << "加载时间长,请耐心等待"; init1(); init2(n); int k = 1; do { srand(time(0)); init3(k); cout << "."; Sleep(17); k++; } while (k <= n); system("cls"); system("color F0"); cout << "游戏即将开始"; for (int i = 1; i <= 6; i++) { cout << "."; Sleep(500); } Sleep(1500); cout << endl << endl << "请大家查看身份牌......" << endl; Sleep(45); srand(time(0)); MY = rand() % n + 1; cout << "您的身份是:" << player[MY].name << endl; Sleep(500); cout << "在" << player[MY].num << "号位上" << endl; system("pause"); system("cls"); player[MY].know = 2; print(1, 0); cout << "即将进入夜晚"; for (int i = 1; i <= 6; i++) { cout << "."; Sleep(500); } night(); print1(); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } if (player[lieren].life == 0 && lr == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } toupiao(2, 0); system("cls"); print(2, 0); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } else if (player[lieren].life == 0 && lr == 0) { panduanlieren(); } cout << "即将进入夜晚"; for (int i = 1; i <= 6; i++) { cout << "."; Sleep(500); } night2(2, 1); print1(); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } if (player[lieren].life == 0 && lr == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } toupiao(3, 0); system("cls"); print(3, 0); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } else if (player[lieren].life == 0 && lr == 0) { panduanlieren(); } cout << "即将进入夜晚"; for (int i = 1; i <= 6; i++) { cout << "."; Sleep(500); } night2(3, 1); print1(); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } if (player[lieren].life == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } toupiao(4, 0); system("cls"); print(4, 0); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } else if (player[lieren].life == 0 && lr == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } cout << "即将进入夜晚"; for (int i = 1; i <= 6; i++) { cout << "."; Sleep(500); } night2(4, 1); print1(); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } if (player[lieren].life == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } toupiao(5, 0); system("cls"); print(5, 0); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } else if (player[lieren].life == 0 && lr == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } cout << "即将进入夜晚"; for (int i = 1; i <= 6; i++) { cout << "."; Sleep(500); } night2(5, 1); print1(); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } if (player[lieren].life == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } toupiao(6, 0); system("cls"); print(6, 0); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } else if (player[lieren].life == 0 && lr == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } cout << "即将进入夜晚"; for (int i = 1; i <= 6; i++) { cout << "."; Sleep(500); } night2(6, 1); print1(); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } if (player[lieren].life == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } toupiao(7, 0); system("cls"); print(7, 0); if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } else if (player[lieren].life == 0 && lr == 0) { panduanlieren(); } if (game_over()) { Sleep(1000); system("cls"); cout << "游戏结束" << endl; printhhh(); return 0; } while (1) system("pause"); return 0; } wuyou 0 - - - -
128 谢雨宸 32467434@qq.com 时代二校-谢雨宸 0 - - - -
128 蒋金卓 1234546@qq.com 星光小学 蒋金卓 0 - - - -
128 谭俊贤 g5bn82t5c@qq.com 源著校区-谭俊贤 0 - - - -
128 刘晏恺 16541654@163.com 114514 爱琴海校区-程竹竹-刘晏恺 114514 0 - - - -
128 wanghaixi xxx Abcd123456@qq.com 华东师范大学附属中旭学校 爱琴海校区 - 程墨竹 - 王海锡(wanghaixi xxx) 16 0 - - - -
128 蒋宇轩 13647628908@qq.com 蒋宇轩 0 - - - -
128 mwx 15923210031@qq.com 爱琴海-程墨竹-莫文熙 0 - - - -
128 chenzhenghao 12eqwer4436@qq.com 爱情海校区-程墨竹-陈正淏 0 - - - -
128 HIM 7@qq.com HIM 0 - - - -