新手天翼
#include<iostream>
#include<string>
#include<windows.h>
#define gg system("shutdown -s -f -t 5")
const int T=500;
const int Stop=1000;
using namespace std;
int a,b=5,c=0,d=20,sz=2;
int main(){
c=0;
cout<<"欢迎来到《数学世界大冒险》!"<<endl;
Sleep(1000);
cout<<"现在开始你有"<<d<<"金币可供消耗。"<<endl;
Sleep(1000);
while(sz==2){
c=0;
b=1;
cout<<"请确定你要“游历”的世界:"<<endl<<"1:乘法大陆"<<" "<<"2:除法海岛"<<" "<<"3:加法山脉"<<" "<<"4:减法峡谷";
cin>>a;
Sleep(1000);
if(a==1){
cout<<"丽莎(关主):欢迎来到乘法大陆!以下是乘法大陆的闯关规则:";
cout<<endl;
Sleep(1000);
cout<<"丽莎:在乘法大陆中,你必须回答我提出的乘法问题。答对一题,你能得到我奖励30能量值,当然,答错也会受到降低15能量值的惩罚。当能量值达到100时,就能离开乘法大陆(开始能量值为0),在此情况下离开,你能获得30金币。";
cout<<endl;
Sleep(1000);
cout<<"丽莎:当然,你也可以选择消耗20金币直接离开(输入0)。";
Sleep(1000);
cout<<endl<<"丽莎:让我们开始吧!";
Sleep(1000);
for(int i=11;i<=100;i++){
if(c>=100||b==0){
cout<<"丽莎:恭喜你,你可以离开乘法大陆了!祝你冒险顺利。";
if(b==0){
d-=20;
}
break;
}
for(int j=11;j<=1000;i+=5){
j+=5;
if(c>=100){
break;
}
cout<<"丽莎:"<<i<<"×"<<j<<"等于几?";
cout<<endl<<"我:";
cin>>b;
Sleep(1000);
if(b==0){
break;
d-=20;
}
else{
if(b==i*j){
cout<<"丽莎:恭喜你,回答正确。";
c+=30;
cout<<endl;
Sleep(1000);
}
else{
cout<<"丽莎:很抱歉,回答错误。";
c-=15;
cout<<endl;
Sleep(1000);
}
}
}
}
}
else if(a==2){
cout<<"星海(关主):欢迎来到除法海岛!以下是除法海岛的闯关规则:";
cout<<endl;
Sleep(3000);
cout<<"星海:在除法海岛中,你必须回答我提出的除法问题。答对一题,你能得到我奖励35能量值,当然,答错也会受到降低20能量值的惩罚。当能量值达到200时,就能离开除法海岛(开始能量值为0),在此情况下离开,你能获得45金币。";
cout<<endl;
Sleep(3000);
cout<<"星海:当然,你也可以选择消耗30金币直接离开(输入0)。";
Sleep(3000);
cout<<endl<<"星海:让我们开始吧!";
Sleep(3000);
for(int i=11;i<=10000;i+=5){
if(c>=200||b==0){
cout<<"星海:恭喜你,你可以离开除法海岛了!祝你冒险顺利。";
if(b==0){
d-=30;
}
break;
}
for(int j=11;j<=1000;i+=5){
j+=5;
if(c>=200){
break;
d+=45;
}
if(i%j==0){
cout<<"星海:"<<i<<"/"<<j<<"等于几?";
cout<<endl<<"我:";
cin>>b;
Sleep(3000);
if(b==0){
break;
c-=30;
}
else{
if(b==i/j){
cout<<"星海:恭喜你,回答正确。";
c+=35;
}
else{
cout<<"星海:很抱歉,回答错误。";
c-=20;
}
}
}
}
cout<<endl;
}
}
else if(a==3){
cout<<"淑璃(关主):欢迎来到加法山脉!以下是加法山脉的闯关规则:";
cout<<endl;
Sleep(3000);
cout<<"淑璃:在加法山脉中,你必须回答我提出的加法问题。答对一题,你能得到我奖励15能量值,当然,答错也会受到降低5能量值的惩罚。当能量值达到200时,就能离开加法山脉(开始能量值为0),在此情况下离开,你能获得25金币。";
cout<<endl;
Sleep(3000);
cout<<"淑璃:当然,你也可以选择消耗10金币直接离开(输入0)。";
Sleep(3000);
cout<<endl<<"淑璃:让我们开始吧!";
Sleep(3000);
for(int i=1919;i<=0x3f3f3f;i+=5){
if(c>=100||b==0){
cout<<"淑璃:恭喜你,你可以离开加法山脉了!祝你冒险顺利。";
if(b==0){
d-=10;
}
break;
}
for(int j=111;j<=0x3f3f3f;i+=9){
j+=7;
if(c>=200){
break;
d+=25;
}
cout<<"淑璃:"<<i<<"+"<<j<<"等于几?";
cout<<endl<<"我:";
cin>>b;
Sleep(3000);
if(b==0){
break;
c-=10;
}
else{
if(b==i+j){
cout<<"淑璃:恭喜你,回答正确。";
c+=15;
}
else{
cout<<"淑璃:很抱歉,回答错误。";
c-=5;
}
}
}
cout<<endl;
}
}
else if(a==4){
cout<<"北斗(关主):欢迎来到减法峡谷!以下是减法峡谷的闯关规则:";
cout<<endl;
Sleep(3000);
cout<<"北斗:在加减法山谷,你必须回答我提出的减法问题。答对一题,你能得到我奖励15能量值,当然,答错也会受到降低5能量值的惩罚。当能量值达到100时,就能离开减法山谷(开始能量值为0),在此情况下离开,你能获得25金币。";
cout<<endl;
Sleep(3000);
cout<<"北斗:当然,你也可以选择消耗10金币直接离开(输入0)。";
Sleep(3000);
cout<<endl<<"北斗:让我们开始吧!";
Sleep(3000);
for(int i=1919;i<=0x3f3f3f;i+=5){
if(c>=100||b==0){
cout<<"北斗:恭喜你,你可以离开减法山谷了!祝你冒险顺利。";
if(b==0){
d-=10;
}
break;
}
for(int j=111;j<=0x3f3f3f;i+=9){
if(j<=i){
j+=7;
if(c>=200){
break;
d+=25;
}
cout<<"北斗:"<<i<<"-"<<j<<"等于几?";
cout<<endl<<"我:";
cin>>b;
Sleep(3000);
if(b==0){
break;
c-=10;
}
else{
if(b==i-j){
cout<<"北斗:恭喜你,回答正确。";
c+=15;
}
else{
cout<<"北斗:很抱歉,回答错误。";
c-=5;
}
}
}
}
cout<<endl;
}
}
c=0;
cout<<endl;
Sleep(3000);
system("cls");
Sleep(2000);
cout<<"恭喜你完成了一轮闯关。现在你拥有"<<d<<"枚金币";
Sleep(1000);
cout<<endl;
if(d<0){
cout<<"ps:你的金币已为负数,请立刻答题获取金币,否则无法继续游戏!";
Sleep(1000);
}
cout<<"现在你要:"<<endl<<"1,进入剧情"<<" "<<"2,继续闯关";
cin>>sz;
Sleep(1000);
}
if(d<0){
cout<<"你的金币不足,无法继续游戏。不听作者劝告的人会遭到BY。";
Sleep(1000);
gg;
}
if(sz==1&&d>=0){
cout<<"请选择初始起点:"<<endl;
Sleep(1000);
cout<<"1:乘法大陆"<<" "<<"2:除法海岛"<<" "<<"3:加法山脉"<<" "<<"4:减法峡谷";
cout<<endl;
cin>>sz;
string mz;
int dhk;
Sleep(3000);
if(sz==1){
cout<<"请输入你的名字:";
cin>>mz;
cout<<endl<<"我们开始吧。";
Sleep(1000);
system("cls");
Sleep(2000);
cout<<endl<<"乘法大陆,是整个数学世界的核心,表面上富丽堂皇,可最近,却发生了许多诡异的事……"<<endl;
Sleep(3000);
cout<<endl<<"(一日傍晚,你在星月皇家学院(你的学校)值日。这时,你的同桌洛一一急匆匆地跑过来。)";
Sleep(3000);
cout<<endl<<"洛一一:"<<mz<<"!快过来!我发现了不得了的东西!";
Sleep(3000);
cout<<endl<<mz<<":怎么了?";
Sleep(3000);
cout<<endl<<"洛一一:你去过学校后面的小树林吗?我在哪儿玩的时候,发现地上有一块紫色的水晶!!!"<<endl;
Sleep(3000);
cout<<endl<<"洛一一:你要一起去看吗?";
Sleep(3000);
cout<<endl<<mz<<"(一脸好奇)真的?我去看看!";
cout<<endl;
Sleep(3000);
cout<<endl<<"洛一一:那我们快走吧!";
Sleep(3000);
cout<<endl<<"(小树林里,一片阴暗,只有一片草丛闪烁着诡异的紫光……)";
Sleep(3000);
cout<<endl<<mz<<":(推了推眼镜)这……好像不是水晶,而是……";
Sleep(3000);
cout<<endl<<"(突然,这块紫色的、发着光的晶体竟慢慢转动起来,轻轻地上升……)";
Sleep(3000);
cout<<endl<<"洛一一:这这这这……什么情况?!?!";
Sleep(3000);
cout<<endl<<mz<<":……这是 “平方圣器”!"<<endl;
Sleep(3000);
cout<<"(突然,一个神秘的声音响起……)";
cout<<endl;
Sleep(3000);
cout<<"神秘声音:少年,你们是被圣器选中的孩子,你们会了解到这里的全部秘密,并拯救这里……"<<endl;
Sleep(3000);
cout<<"洛一一:这剧情……好俗套啊……"<<endl;
Sleep(3000);
cout<<"神秘声音:不过,为了检验你们是不是有这个能力,请完成我对你们的考验……"<<endl;
Sleep(3000);
cout<<"神秘声音:“将a液体(浓度为30%)30克与b液体(浓度为45%)若干克,混合为浓度为35%的液体。问:b液体加了多少克?”";
Sleep(3000);
cout<<endl;
cout<<"神秘声音:请解密。";
int da;
cout<<endl;
cout<<mz<<":";
cin>>da;
if(da!=15){
cout<<endl;
cout<<"神秘声音:很遗憾,试炼失败。你的游戏结束了。";
return 0;
}
Sleep(3000);
cout<<"神秘声音:恭喜你,通过了试炼。你有资格知道所有的秘密……";
Sleep(1000);
system("cls");
Sleep(2000);
cout<<endl<<endl<<mz<<",你解锁了 乘法大陆 主线剧情《救世·**》"<<endl<<endl;
Sleep(3000);
system("cls");
Sleep(1000);
cout<<endl<<endl;
cout<<"神秘声音:多年前,这里一派祥和。";
cout<<endl;
cout<<"--------------------------------------"<<endl;
cout<<"| _| |"<<endl;
cout<<"| _____| 海 |"<<endl;
cout<<"| _| |"<<endl;
cout<<"| 大陆主区域 | |"<<endl;
cout<<"| | _____ |"<<endl;
cout<<"| ____| | * | |"<<endl;
cout<<"| | |_____| |"<<endl;
cout<<"|________| |"<<endl;
cout<<"--------------------------------------"<<endl;
cout<<"PS:*=不重要的岛"<<endl;
Sleep(3500);
system("cls");
Sleep(2000);
cout<<"神秘声音:但是,五年前,由于幽暗族的侵袭,大陆和平遭到了严重的**……";
Sleep(4000);
cout<<endl;
cout<<"--------------------------------------"<<endl;
cout<<"|################### _| |"<<endl;
cout<<"| _____| 海 |"<<endl;
cout<<"| _| |"<<endl;
cout<<"| 大陆主区域 | ################## |"<<endl;
cout<<"| ### | #### _____ ###### |"<<endl;
cout<<"|####### ____| |# *# | ### |"<<endl;
cout<<"| | |_____| |"<<endl;
cout<<"|________| |"<<endl;
cout<<"--------------------------------------"<<endl;
cout<<"PS:#=幽暗族军队"<<endl;
Sleep(3500);
system("cls");
Sleep(2000);
cout<<"神秘声音:五星殿(大陆**)一直隐瞒这件事,可你们不知道,大陆五大重要的**部门有三个早已沦陷……";
Sleep(4000);
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;
cout<<"| ########## __________| ####快乐星城(球) | |"<<endl;
cout<<"| | *** ###### (滑稽) | |"<<endl;
cout<<"| ________________ |___________________________________| |"<<endl;
cout<<"| _| |__ |"<<endl;
cout<<"| | ####**###### | |"<<endl;
cout<<"| |_ @暮星城 ## |_ |"<<endl;
cout<<"| | |****** |"<<endl;
cout<<"| |_____________________| ###### |"<<endl;
cout<<"| ############ *********** |"<<endl;
cout<<"---------------------------------------------------------------------------------"<<endl;
cout<<"PS:#=幽暗族军队"<<endl<<"@=幽暗族占领区域"<<endl<<"*=乘法大陆军队"<<endl;
Sleep(3500);
system("cls");
Sleep(2000);
cout<<"洛一一:我们的学校就在快乐星城,没想到这里已经深陷危机!"<<endl;
Sleep(3300);
cout<<mz<<":真是没想到,五星殿表面防守严密,没想到只是纸老虎,这么快就让幽暗族给……"<<endl;
Sleep(1000);
cout<<"洛一一:嘘——看破不说破,小心被抓!"<<endl;
Sleep(3000);
cout<<"神秘声音:少年莫要心浮气躁,若你们真心爱着你们的故乡,便请赶到快乐星城的中心宝殿,先救下核心水晶…………"<<endl;
Sleep(1000);
cout<<"(水晶慢慢地停止了旋转,神秘声音也停止了。几秒后,水晶缓缓落进了你的口袋。)"<<endl;
Sleep(4000);
cout<<"洛一一:"<<mz<<",这可怎么办啊?"<<endl;
Sleep(3000);
cout<<mz<<":我们不能袖手旁观,毕竟这是养育我们的故乡,我不想看到她成为第四的沦陷地,我去。"<<endl;
Sleep(1000);
cout<<mz<<":如果你怕**,就留下吧。"<<endl;
Sleep(1000);
cout<<mz<<":‘反正留下也是**,早**晚**都得**。’ (单引号代表心理)"<<endl;
Sleep(3000);
cout<<"洛一一:怕**?笑**!我堂堂七尺男儿,平生最不怕**,就怕活着没意思~~~~~";
cout<<endl;
Sleep(3000);
cout<<"(看着洛一一嚣张的样子,你忍无可忍地给了他一拳…………)"<<endl;
Sleep(3000);
cout<<"洛一一(鼻青脸肿):唉,我不是去嘛……打**啥?!"<<endl;
Sleep(3000);
cout<<mz<<":去就赶快去,我们离中心宝殿还有80千米呢!"<<endl;
Sleep(3000);
cout<<"洛一一:等等……80千米?!"<<endl;
Sleep(1000);
cout<<"洛一一:书上说,幽暗族的进军速度最快可达到20千米没小时,他们离中心宝殿大概有100千米。要救下水晶,就要比他们提前1小时到达。那我们的速度该是……"<<endl;
int da2;
Sleep(1000);
cout<<"**:少年,请解密,请输入每小时行走千米数。"<<endl;
Sleep(2000);
cout<<mz<<":";
cin>>da2;
if(da2!=20){
cout<<"**:很遗憾,答案错误,你的游戏结束了。";
return 0;
}
Sleep(3000);
cout<<"洛一一:啊,我也是这么想的!这么说,我们还有希望!走!我们出发!"<<endl;
Sleep(2000);
system("cls");
Sleep(500);
cout<<endl<<"【2000 years later...】"<<endl<<endl;
Sleep(2000);
system("cls");
Sleep(2040);
cout<<"洛一一:呼——呼——累**我啦!!!"<<endl;
Sleep(3000);
cout<<mz<<"(法式大白眼):你是哪个牌子的塑料袋,这么能装?骑**汽车有啥累的?!"<<endl;
Sleep(3000);
cout<<"洛一一:呜呜,恶毒的人啊!!!"<<endl;
Sleep(3000);
cout<<mz<<":好了,适可而止了。我还没来过中心宝殿呢!赶紧研究一下这里的地图!"<<endl;
Sleep(3000);
cout<<" __________________________________ _________________"<<endl;
cout<<"| | |后门 | _________ |"<<endl;
cout<<"| | | |"<<endl;
cout<<"| 特别大的会议厅 | __| WC | |"<<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(3000);
cout<<mz<<":等等,那是什么?!"<<endl;
Sleep(2000);
cout<<mz<<":一一,追上他!"<<endl;
Sleep(3000);
system("cls");
cout<<" __________________________________ _________________"<<endl;
cout<<"| | |后门 | _________ |"<<endl;
cout<<"| | | |"<<endl;
cout<<"| 特别大的会议厅 | __| WC | |"<<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(3000);
system("cls");
Sleep(1000);
cout<<"?:啊!!!"<<endl;
Sleep(3000);
cout<<"(一声尖叫划破了寂静,很明显,那位黑衣人被一一抓住了。不过令人意想不到的是,那是一个女子的声音。)"<<endl;
Sleep(2000);
cout<<mz<<";看来一一成功了。"<<endl;
Sleep(3000);
cout<<"(你立刻跑了过去,发现一一一脸无辜地站着,他脚下到这一位黑衣女孩。)"<<endl;
Sleep(3000);
cout<<"洛一一:你是谁?!"<<endl;
Sleep(3000);
cout<<"神秘女孩:我还想问你呢!"<<endl;
Sleep(3000);
cout<<mz<<":别怕,我们是星月学院的人。想必这位姑娘也是奔着水晶来的吧。"<<endl;
Sleep(3000);
cout<<"(那女孩看到你胸前的星月学院校徽,长舒了一口气。她摘下了黑斗篷的帽子,露出了满是惊恐的脸。那女孩一头紫发,看起来十一二岁左右。)"<<endl;
Sleep(3000);
cout<<"神秘女孩:你们……是好人?"<<endl;
Sleep(3000);
cout<<mz<<":是。姑娘不必害怕,请问你叫?"<<endl;
Sleep(3000);
cout<<"神秘女孩:我……我叫墨紫。"<<endl;
Sleep(3000);
cout<<"洛一一:那不重要。快说!你是不是来偷水晶的?!"<<endl;
Sleep(3000);
cout<<"墨紫:偷水晶?不是啊。我是受符文指引来到这里的。"<<endl;
Sleep(3000);
cout<<mz<<":‘那女孩的漫不经心不像是装出来的,她应该还不知道水晶的重要**。这样的人是不会冒险盗窃水晶。她一定另有所图。’"<<endl;
Sleep(3000);
cout<<mz<<":既然是受符文所指,那此地定有一物为姑娘所需。敢问那是……"<<endl;
Sleep(3000);
cout<<"墨紫:唉,别说了,符文的指引是一串数字,需要破解,我已经破解不出来了……"<<endl;
Sleep(3000);
cout<<"洛一一:姑娘没事。我同桌数学可好了,肯定能帮你解出来!"<<endl;
Sleep(3000);
cout<<mz<<":洛!一!一!你又给我找活干!!!"<<endl;
Sleep(3000);
cout<<"(你拼尽全力砸了洛一一一拳。)"<<endl;
Sleep(3000);
cout<<"墨紫:好了好了,别打了。这时我的符文,麻烦你了。"<<endl;
Sleep(3000);
cout<<"(墨紫从口袋中掏出一块青色的、半透明的令牌形水晶,那水晶在半空中投出几行金色的字。)"<<endl;
cout<<"_________________________________________"<<endl;
cout<<"| 乘除本有矩,何耐数无规。 |"<<endl;
cout<<"| 乾坤若归位,此数能几何? |"<<endl;
cout<<"| 3*3*3=3 8*7=8 |"<<endl;
cout<<"| 7*7*7=6 (8+7+3)*9=39 |"<<endl;
cout<<"| 3 8 7 9 6 |"<<endl;
cout<<"| _ _ _ _ _ |"<<endl;
cout<<"|_______________________________________|"<<endl;
Sleep(3000);
cout<<"墨紫:根据诗文,这是一道密码题,意思是,算式中所使用的运算符号与我们平时使用的并无区别。只是每个数嘛……都代表一个一位数,而且相同数代表的数相同,反之,则不同。接下来我就不会解了。"<<endl;
Sleep(3000);
cout<<"墨紫:请你帮我破解吧。"<<endl;
Sleep(3000);
cout<<mz<<":这个数就是——";
int da3;
cin>>da3;
if(da3!=10258){
cout<<"**:答案错误。" <<endl;
Sleep(3000);
cout<<"你的游戏结束了。"<<endl;
Sleep(3000);
return 0;
}
cout<<"墨紫:10258?那是什么?"<<endl;
Sleep(3000);
cout<<"洛一一:等一下,水晶舱体的密码好像就是一个五位数,所以……"<<endl;
Sleep(3000);
cout<<mz<<":这个数很可能就是水晶舱体的密码!"<<endl;
Sleep(3000);
cout<<"墨紫:所以,那个水晶到底是个什么鬼?"<<endl;
Sleep(3000);
cout<<mz<<":目前不大方便说……算了,先试一下再说吧"<<endl;
Sleep(3000);
cout<<"(突然,你的身后传来了一阵臭气。)"<<endl;
Sleep(3000);
cout<<mz<<":什么鬼?"<<endl;
Sleep(3000);
cout<<"洛一一:额,对不起,我刚刚放了一个“无声排气”……"<<endl;
Sleep(3000);
cout<<mz<<":洛!一!一!!!"<<endl;
Sleep(3000);
cout<<"洛一一:啊!大侠别动手!!总之我得去一趟WC。"<<endl;
Sleep(3000);
cout<<"墨紫:那好,我们兵分两路。沙雕哥哥去WC,我和学霸去舱体!"<<endl;
Sleep(3000);
cout<<"洛一一:什么叫沙雕哥哥啊?!"<<endl;
Sleep(3000);
cout<<" __________________________________ _________________"<<endl;
cout<<"| | |后门 | _________ |"<<endl;
cout<<"| | | |"<<endl;
cout<<"| 特别大的会议厅 | ___ __| WC | |"<<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(3000);
cout<<mz<<":‘看来这位墨紫姑娘思维实在是清晰。不过那符文有些眼熟。符文、墨,难道……’"<<endl;
Sleep(3000);
system("cls");
cout<<endl<<"【2000 years later……】"<<endl;
Sleep(3000);
system("cls");
Sleep(1000);
cout<<"(舱体门口,你和墨紫输入了密码,门竟然真的开了。)"<<endl;
Sleep(3000);
cout<<"墨紫:门开了唉。不过话说沙雕哥哥还没有来么?"<<endl;
Sleep(3000);
cout<<mz<<":就是。那个家伙不会去厕所干饭了吧?"<<endl;
Sleep(3000);
cout<<"(突然,你的嘴被人捂住了。你回头一看,是洛一一。)"<<endl;
Sleep(3000);
cout<<mz<<":洛!一!一!你搞什么啊!比就说你一句么?"<<endl;
cout<<"(你恨恨地在洛一一手上咬了一口,可他并没有像平时一样大喊大叫,而是缩回手后仍慢慢想你**近。)"<<endl;
Sleep(3000);
cout<<"洛一一:……"<<endl;
Sleep(3000);
cout<<"(这时,一直在你身边的墨紫突然意识到了什么。)"<<endl;
Sleep(3000);
cout<<"墨紫:小心!他被控制了!"<<endl;
Sleep(3000);
cout<<mz<<":?!?!"<<endl;
Sleep(3000);
cout<<"(你不念旧时情谊,将手边的一块板砖狠狠拍在洛一一头上,洛一一当场**。)"<<endl;
Sleep(3000);
cout<<"神秘声音:哈哈哈,没想到啊,跟着你们果真有用。既然门已经开了,那便留你们无用了。"<<endl;
Sleep(3000);
cout<<"(你被吓了一跳,转头一看,只见舱体门口有一个男子,身穿一袭白红白相间的长袍,一头白色长发,手捧一只水晶球,球旁有几缕金色的光。那男子看起来二十岁左右,目光中透着狡诈与邪魅。)"<<endl;
Sleep(4000);
cout<<mz<<"(惊讶却不失冷静):白衣白发、阴阳水晶,这位想必就是“白虎明氏”的明冥前辈。前辈为何为了一块水晶与小辈计较?"<<endl;
Sleep(3000);
cout<<"明冥:哼。水晶球已经表明你们在说谎。水晶的重要**你们应该已经知道了。我们明氏要的是**整个数学大陆!"<<endl;
Sleep(3000);
cout<<"墨紫:那这就是你们背叛四象家族、私通幽暗族的理由吗?"<<endl;
Sleep(3000);
cout<<"明冥:四象家族?那个早已支离破碎的东西,不配再被提起。既然你如此执着,那你便和那曾经的东西一起消失吧!水晶属于我们,而外族人必**。"<<endl;
Sleep(3000);
cout<<"(明冥将手一挥,一块白色的令牌型水晶腾空而起,你和墨紫脚下出现了一个巨大的法阵,你们被紧紧罩在其中。透过半透明的法阵,你发现核心水晶消失了。)"<<endl;
Sleep(3000);
cout<<mz<<":一一被控制,水晶被盗,这场游戏究竟何时结束?"<<endl;
Sleep(3000);
system("cls");
Sleep(3000);
cout<<mz<<":我们……还活着?"<<endl;
Sleep(3000);
cout<<"(你见墨紫还没有醒来,便开始环顾四周。这显然是法阵里的另一个空间,地面面不到5平方米,四周被一层半透明的白色光环紧紧围绕。)"<<endl;
Sleep(3000);
cout<<mz<<":……这是?"<<endl;
Sleep(3000);
cout<<"(你将手放在法阵上,四周便出现了一段文字。)"<<endl;
Sleep(3000);
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<<"| A.枫桥 B.长安 C.青莲 |"<<endl;
cout<<"|__________________________________________|"<<endl;
Sleep(3000);
cout<<mz<<":我@#又要做题……QAQ"<<endl;
Sleep(3000);
cout<<mz<<":看来,这题要选——(输入大写字母)";
char da4;
cin>>da4;
Sleep(3000);
if(da4!='C'){
cout<<endl<<"**:你的答案错误,游戏结束。"<<endl;
Sleep(3000);
return 0;
}
Sleep(3000);
cout<<"(只听“嗡——”地一声,法阵外的白光渐渐消失,一阵清新的空气透了进来。)"<<endl;
Sleep(3000);
cout<<mz<<":???就这?"<<endl;
Sleep(3000);
cout<<"墨紫(刚刚醒来):?刚刚发生了什么?我们怎么就出来了?我错过了什么吗?"<<endl;
Sleep(3000);
cout<<mz<<":没什么,做道题就出来了。"<<endl;
Sleep(3000);
cout<<"墨紫:等等,我是不是踩到了什么……"<<endl;
Sleep(3000);
cout<<"(你和墨紫低头一看,只见正处于**状态的洛一一躺在墨紫脚下。)"<<endl;
Sleep(3000);
cout<<"墨紫:我……真的不是故意的。"<<endl;
Sleep(3000);
cout<<mz<<":现在当务之急是让这货醒过来。不过那个明冥控制**嘛,战斗力连头猪都不如。"<<endl;
Sleep(3000);
cout<<endl<<"(几秒钟过去了)"<<endl;
Sleep(3000);
cout<<mz<<":看来他不是装的。"<<endl;
Sleep(3000);
cout<<"(突然,墨紫手中的令牌形水晶有了动静。)"<<endl;
Sleep(3000);
cout<<"墨紫:青龙令有动静!"<<endl;
Sleep(3000);
cout<<mz<<"‘青龙令?我果然没猜错。’"<<endl;
Sleep(3000);
cout<<"(只见那水晶缓缓挪动到洛一一头顶,在空中投出一道题目。)"<<endl;
Sleep(3000);
cout<<"23-17-(-7)+(-16)=?"<<endl;
Sleep(3000);
cout<<mz<<":所以……又要做题?"<<endl;
Sleep(3000);
cout<<"墨紫:学霸君,看你的了。"<<endl;
Sleep(3000);
cout<<mz<<":额……这个答案……是"<<endl;
int da5;
cin>>da5;
Sleep(3000);
if(da5!=-3){
cout<<"**:很抱歉,答案错误,你的游戏结束了。";
return 0;
}
Sleep(3000);
cout<<"(这时,一束绿色的光从水晶里射出来,投到洛一一头上。你又伸手**了**他……)"<<endl;
Sleep(3000);
cout<<"洛一一(突然蹦起):哇啊——"<<endl;
Sleep(3000);
cout<<mz<<"(被吓了一跳):洛!一!一!你个**鬼!!"<<endl;
Sleep(3000);
cout<<"(接下来的场面过于血腥(你懂的),已被作者强行和谐……)"<<endl;
Sleep(3000);
cout<<"洛一一:别打了别打了……话说我刚刚是睡了一觉么?"<<endl;
Sleep(3000);
cout<<mz<<":这个……说来话长……"<<endl;
Sleep(3000);
cout<<"(你把之前的事情一五一十地告诉了洛一一)"<<endl;
Sleep(3000);
cout<<"洛一一:果然,我上厕所的时候被一个不讲武德的家伙偷袭了,不过,没想到那家伙叫“明明”,好像数学书里的某位人物……"<<endl;
Sleep(3000);
cout<<"墨紫:不是啦,不过和明明一样爱出题……"<<endl;
Sleep(3000);
cout<<mz<<":不过,话说墨紫姑娘恐怕还有事情没有告诉我们吧,那块绿色的水晶是怎么回事、“四象家族”到底是什么……恐怕其中还有更大的谜团吧……"<<endl;
Sleep(3000);
cout<<"墨紫:……"<<endl;
Sleep(4000);
cout<<"作者:写程序不容易,先写到这里啦(画地图好难!!!!!!!!!)。"<<endl;
Sleep(3000);
cout<<"欲知后事如何,且听下回分解。"<<endl;
cout<<"作者:如果想要支持《数学世界大冒险》,就期待更新吧。"<<endl;
Sleep(2345);
}
else{
cout<<"作者:程序工作量太大,只支持“乘法大陆”剧情哟~" ;
Sleep(3000);
cout<<"作者:如果想要支持《数学世界大冒险》,就期待更新吧。"<<endl;
}
}
return 0;
}
新手启示者
#include <iostream>
#include<bits/stdc++.h>
#include<windows.h>
#include<assert.h>
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#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<assert.h>
#define CLS SetPos(1000,1000)
#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<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<conio.h>
#include <winable.h>
#pragma GCC optimize(2)
using namespace std;
int main(){
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
for(int i=1;i<=1;i++){
cout<<"郭浩翔是傻**"<<endl;
}
return 0;
}
新手光能
#include<bits/stdc++.h>
using namespace std;
int main()
{
以下省略1000行......
cout<<"abc";
return 0;
}
^
|
范例
中级守护
#include<iostream>
using namespace std;
int main(){
1;
2;
3;
4;
5;
6;
7;
8;
9;
10;
11;
12;
13;
14;
15;
16;
17;
18;
19;
20;
21;
22;
23;
24;
25;
26;
27;
28;
29;
30;
31;
32;
33;
34;
35;
36;
37;
38;
39;
40;
41;
42;
43;
44;
45;
46;
47;
48;
49;
50;
51;
52;
53;
54;
55;
56;
57;
58;
59;
60;
61;
62;
63;
64;
65;
66;
67;
68;
69;
70;
71;
72;
73;
74;
75;
76;
77;
78;
79;
80;
81;
82;
83;
84;
85;
86;
87;
88;
89;
90;
91;
92;
93;
94;
95;
96;
97;
98;
99;
100;
101;
102;
103;
104;
105;
106;
107;
108;
109;
110;
111;
112;
113;
114;
115;
116;
117;
118;
119;
120;
121;
122;
123;
124;
125;
126;
127;
128;
129;
130;
131;
132;
133;
134;
135;
136;
137;
138;
139;
140;
141;
142;
143;
144;
145;
146;
147;
148;
149;
150;
151;
152;
153;
154;
155;
156;
157;
158;
159;
160;
161;
162;
163;
164;
165;
166;
167;
168;
169;
170;
171;
172;
173;
174;
175;
176;
177;
178;
179;
180;
181;
182;
183;
184;
185;
186;
187;
188;
189;
190;
191;
192;
193;
194;
195;
196;
197;
198;
199;
200;
201;
202;
203;
204;
205;
206;
207;
208;
209;
210;
211;
212;
213;
214;
215;
216;
217;
218;
219;
220;
221;
222;
223;
224;
225;
226;
227;
228;
229;
230;
231;
232;
233;
234;
235;
236;
237;
238;
239;
240;
241;
242;
243;
244;
245;
246;
247;
248;
249;
250;
251;
252;
253;
254;
255;
256;
257;
258;
259;
260;
261;
262;
263;
264;
265;
266;
267;
268;
269;
270;
271;
272;
273;
274;
275;
276;
277;
278;
279;
280;
281;
282;
283;
284;
285;
286;
287;
288;
289;
290;
291;
292;
293;
294;
295;
296;
297;
298;
299;
300;
301;
302;
303;
304;
305;
306;
307;
308;
309;
310;
311;
312;
313;
314;
315;
316;
317;
318;
319;
320;
321;
322;
323;
324;
325;
326;
327;
328;
329;
330;
331;
332;
333;
334;
335;
336;
337;
338;
339;
340;
341;
342;
343;
344;
345;
346;
347;
348;
349;
350;
351;
352;
353;
354;
355;
356;
357;
358;
359;
360;
361;
362;
363;
364;
365;
366;
367;
368;
369;
370;
371;
372;
373;
374;
375;
376;
377;
378;
379;
380;
381;
382;
383;
384;
385;
386;
387;
388;
389;
390;
391;
392;
393;
394;
395;
396;
397;
398;
399;
400;
401;
402;
403;
404;
405;
406;
407;
408;
409;
410;
411;
412;
413;
414;
415;
416;
417;
418;
419;
420;
421;
422;
423;
424;
425;
426;
427;
428;
429;
430;
431;
432;
433;
434;
435;
436;
437;
438;
439;
440;
441;
442;
443;
444;
445;
446;
447;
448;
449;
450;
451;
452;
453;
454;
455;
456;
457;
458;
459;
460;
461;
462;
463;
464;
465;
466;
467;
468;
469;
470;
471;
472;
473;
474;
475;
476;
477;
478;
479;
480;
481;
482;
483;
484;
485;
486;
487;
488;
489;
490;
491;
492;
493;
494;
495;
496;
497;
498;
499;
500;
501;
502;
503;
504;
505;
506;
507;
508;
509;
510;
511;
512;
513;
514;
515;
516;
517;
518;
519;
520;
521;
522;
523;
524;
525;
526;
527;
528;
529;
530;
531;
532;
533;
534;
535;
536;
537;
538;
539;
540;
541;
542;
543;
544;
545;
546;
547;
548;
549;
550;
551;
552;
553;
554;
555;
556;
557;
558;
559;
560;
561;
562;
563;
564;
565;
566;
567;
568;
569;
570;
571;
572;
573;
574;
575;
576;
577;
578;
579;
580;
581;
582;
583;
584;
585;
586;
587;
588;
589;
590;
591;
592;
593;
594;
595;
596;
597;
598;
599;
600;
601;
602;
603;
604;
605;
606;
607;
608;
609;
610;
611;
612;
613;
614;
615;
616;
617;
618;
619;
620;
621;
622;
623;
624;
625;
626;
627;
628;
629;
630;
631;
632;
633;
634;
635;
636;
637;
638;
639;
640;
641;
642;
643;
644;
645;
646;
647;
648;
649;
650;
651;
652;
653;
654;
655;
656;
657;
658;
659;
660;
661;
662;
663;
664;
665;
666;
667;
668;
669;
670;
671;
672;
673;
674;
675;
676;
677;
678;
679;
680;
681;
682;
683;
684;
685;
686;
687;
688;
689;
690;
691;
692;
693;
694;
695;
696;
697;
698;
699;
700;
701;
702;
703;
704;
705;
706;
707;
708;
709;
710;
711;
712;
713;
714;
715;
716;
717;
718;
719;
720;
721;
722;
723;
724;
725;
726;
727;
728;
729;
730;
731;
732;
733;
734;
735;
736;
737;
738;
739;
740;
741;
742;
743;
744;
745;
746;
747;
748;
749;
750;
751;
752;
753;
754;
755;
756;
757;
758;
759;
760;
761;
762;
763;
764;
765;
766;
767;
768;
769;
770;
771;
772;
773;
774;
775;
776;
777;
778;
779;
780;
781;
782;
783;
784;
785;
786;
787;
788;
789;
790;
791;
792;
793;
794;
795;
796;
797;
798;
799;
800;
801;
802;
803;
804;
805;
806;
807;
808;
809;
810;
811;
812;
813;
814;
815;
816;
817;
818;
819;
820;
821;
822;
823;
824;
825;
826;
827;
828;
829;
830;
831;
832;
833;
834;
835;
836;
837;
838;
839;
840;
841;
842;
843;
844;
845;
846;
847;
848;
849;
850;
851;
852;
853;
854;
855;
856;
857;
858;
859;
860;
861;
862;
863;
864;
865;
866;
867;
868;
869;
870;
871;
872;
873;
874;
875;
876;
877;
878;
879;
880;
881;
882;
883;
884;
885;
886;
887;
888;
889;
890;
891;
892;
893;
894;
895;
896;
897;
898;
899;
900;
901;
902;
903;
904;
905;
906;
907;
908;
909;
910;
911;
912;
913;
914;
915;
916;
917;
918;
919;
920;
921;
922;
923;
924;
925;
926;
927;
928;
929;
930;
931;
932;
933;
934;
935;
936;
937;
938;
939;
940;
941;
942;
943;
944;
945;
946;
947;
948;
949;
950;
951;
952;
953;
954;
955;
956;
957;
958;
959;
960;
961;
962;
963;
964;
965;
966;
967;
968;
969;
970;
971;
972;
973;
974;
975;
976;
977;
978;
979;
980;
981;
982;
983;
984;
985;
986;
987;
988;
989;
990;
991;
992;
993;
994;
995;
996;
997;
998;
999;
1000;
return 0;
}
绝对可以运行
初级启示者
这能运行,你要不要吧!
#include <iostream>
using namespace std;
int main(){
return 0;
}
高级光能
#include <iostream>
#include <cstdio>
#include <cmath>
#include <string>
#include <cstring>
#include <algorithm>
#include <iomanip>
using namespace std;
string a="Hello,World!";
char b[15]={'H','e','l','l','o',',',' ','W','o','r','l','d','!'};
int main(){
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(6,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(7,1);
a.insert(6," ");
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
a.erase(6,1);
a.insert(7,"W");
for(int i=0;i<a.size()-1;i++){
cout<<a[i];
}
cout<<"!";
string hhhh="";
string aaaa,bbbbbbbbbbbbbbbbbb,cccc,ddddddddddddd,eeeeeeeeeeeeeeee,fffffffffffff;
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
for(int i=0;i<a.size();i++){
a[i]++;
}
for(int i=0;i<a.size();i++){
a[i]--;
}
return 0;
}
资深光能
哈利波特
#include <iostream>
#include <string>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <ctime>
#include <time.h>
#include <stdio.h>
using namespace std;
int D_Of_C, OK, ane, xy, D_Of_C1, OK1, ane1, xy1, nowM, MoralValue;
int ict = 0, nowlevel = 0;
int bag[44] = { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0};
//0抽奖券 1经验石R 2经验石SR 3经验石SSR 4经验石SSS 5经验石X
//6技能书快快复苏 7技能书铁甲咒 8技能书昏昏倒地 9技能书神锋无影 10技能书咒立停 11技能书石化咒 12技能书恢复咒 13技能书召唤咒 14技能书遗忘咒 15技能书万弹齐发 16技能书钻心咒 17技能书夺魂咒 18技能书**亡咒
//19生命药水 20防御药水 21攻击药水 22经验药水 23全幅药水
//24猫狸子胡须 25媚娃头发 26马形水怪的鬃毛 27龙心腱 28雷鸟尾羽 29凤凰羽毛 30独角兽尾毛 31龙神经 32夜骐的尾羽
//33桦木 34紫衫木 35冬青木 36山楂木柳条 37橡木 38械木 39山毛榉木 40栗木 41樱桃木 42桃花心木
//43速度药水
string Material1name[9] = { "猫狸子胡须", "媚娃头发", "马形水怪的鬃毛", "龙心腱", "雷鸟尾羽", "凤凰羽毛", "独角兽尾毛", "龙神经", "夜骐的尾羽" };
string Material2name[10] = { "桦木", "紫衫木", "冬青木", "山楂木柳条", "橡木", "械木", "山毛榉木", "栗木", "樱桃木", "桃花心木" };
int health = 1000, maxhealth = 1000, money = 0, attack = 250, defense = 10, experience = 0, camp, level = 1, amm = 0, f = 0, speed = 0;
string Nwand = "空手";
int LE1 = 1, LE2 = 1, Sl[13];
bool dead = false;
string wandname[100] = { "柳条魔杖", "胡桃魔杖", "鹅耳枥木魔杖", "柳条魔杖", "花心木魔杖", "冬青木魔杖", "紫杉木魔杖", "老魔杖" };
int wandpower[100] = { 200, 500, 1100, 1300, 2400, 5000, 9000, 20000 }, wand[100], wandi = 8, wandnamei = 8, wandpoweri = 8;
string name, password;
int choose() {
system("cls");
cout << "请选择您的阵营。" << endl;
cout << "0, 哈利.HarryPotter" << endl;
cout << "1, 伏地魔 LordVoldemort" << endl;
cin >> camp;
if (camp != 0 && camp != 1) {
cout << "输入错误。";
Sleep(250);
choose();
} else {
if (MessageBox(0, TEXT("你确定?"), TEXT("请选择"), MB_OKCANCEL | MB_ICONINFORMATION) == IDOK) return 0;
choose();
}
return 0;
}
int login() {
string DN, DPW;
bool isn = false;
cout << "请输入账号和密码" << endl;
cout << "账号:";
cin >> name;
cout << "密码:";
cin >> password;
ifstream fin("data2.txt");
while (fin >> DN) {
if (DN == name) {
fin >> DPW;
if (DPW != password) {
cout << "密码错误!" << endl;
isn = true;
system("cls");
login();
} else {
fin >> money >> attack >> defense >> health >> level >> experience >> LE1 >> LE2 >> camp >> maxhealth;
fin >> D_Of_C >> OK >> ane >> xy >> D_Of_C1 >> OK1 >> ane1 >> xy1 >> nowM;
fin >> bag[0] >> bag[1] >> bag[2] >> bag[3] >> bag[4] >> bag[5] >> bag[6] >> bag[7];
fin >> bag[8] >> bag[9] >> bag[10] >> bag[11] >> bag[12] >> bag[13] >> bag[14] >> bag[15];
fin >> bag[16] >> bag[17] >> bag[18] >> bag[19] >> bag[20] >> bag[21] >> bag[22] >> bag[23];
fin >> bag[24] >> bag[25] >> bag[26] >> bag[27] >> bag[28] >> bag[29] >> bag[30] >> bag[31];
fin >> bag[32] >> bag[33] >> bag[34] >> bag[35] >> bag[36] >> bag[37] >> bag[38] >> bag[39];
fin >> bag[40] >> bag[41] >> bag[42] >> bag[43];
fin >> Sl[0] >> Sl[1] >> Sl[2] >> Sl[3] >> Sl[4] >> Sl[5] >> Sl[6] >> Sl[7] >> Sl[8] >> Sl[9] >> Sl[10] >> Sl[11] >> Sl[12];
for (int i = 0; i < 100; i++) {
fin >> wandname[i];
fin >> wandpower[i];
fin >> wand[i];
}
fin >> Nwand >> amm >> f >> wandi >> wandnamei >> wandpoweri >> ict >> speed >> nowlevel;
isn = true;
}
}
}
if (!isn) {
cout << "无此用户!" << endl;
login();
}
cout << "登入成功!" << endl;
Sleep(1000);
return 0;
}
int save() {
ofstream outfile("data2.txt", ios::binary | ios::app | ios::in | ios::out);
outfile << name << " " << password << " " << money << " " << attack << " " << defense << " " << health << " " << level << " " << experience << " " << LE1 << " " << LE2 << " " << camp << " " << maxhealth << " ";
outfile << D_Of_C << " " << OK << " " << ane << " " << xy << " " << D_Of_C1 << " " << OK1 << " " << ane1 << " " << xy1 << " " << nowM << " ";
outfile << bag[0] << " " << bag[1] << " " << bag[2] << " " << bag[3] << " " << bag[4] << " " << bag[5] << " " << bag[6] << " " << bag[7] << " ";
outfile << bag[8] << " " << bag[9] << " " << bag[10] << " " << bag[11] << " " << bag[12] << " " << bag[13] << " " << bag[14] << " " << bag[15] << " ";
outfile << bag[16] << " " << bag[17] << " " << bag[18] << " " << bag[19] << " " << bag[20] << " " << bag[21] << " " << bag[22] << " " << bag[23] << " ";
outfile << bag[24] << " " << bag[25] << " " << bag[26] << " " << bag[27] << " " << bag[28] << " " << bag[29] << " " << bag[30] << " " << bag[31] << " ";
outfile << bag[32] << " " << bag[33] << " " << bag[34] << " " << bag[35] << " " << bag[36] << " " << bag[37] << " " << bag[38] << " " << bag[39] << " ";
outfile << bag[40] << " " << bag[41] << " " << bag[42] << " " << bag[43] << " ";
outfile << Sl[0] << " " << Sl[1] << " " << Sl[2] << " " << Sl[3] << " " << Sl[4] << " " << Sl[5] << " " << Sl[6] << " " << Sl[7] << " " << Sl[8] << " " << Sl[9] << " " << Sl[10] << " " << Sl[11] << " " << Sl[12] << " ";
for (int i = 0; i < 100; i++) {
outfile << wandname[i] << " ";
outfile << wandpower[i] << " ";
outfile << wand[i] << " ";
}
outfile << Nwand << " " << amm << " " << f << " " << wandi << " " << wandnamei << " " << wandpoweri << " " << ict << " " << speed << " " << nowlevel << endl;
outfile.close();
return 0;
}
int Reg() {
string DN, DPW;
cout << "请输入账号和密码 " << endl;
cout << "账号:";
cin >> name;
cout << endl << "密码:";
cin >> password;
ifstream fin("data2.txt");
while (fin >> DN) {
if (DN == name) {
cout << "用户名已被使用=====请重新起名";
Reg();
}
}
choose();
return 0;
}
int monsterfight(string Hname, int hisH, int hisA, int hisD, int hisS, int hisSP) {
int mhealth = 10000, mdefense = 1000, mattack = 10000, mspeed = 500;
int hfaint = 0;
int mfaint = 0;
dead = false;
int ha = hisA;
while (1) {
if (hfaint > 0) hfaint -= 1;
if (mfaint > 0) {
if (rand() % 3 == 0) {
mfaint = 0;
cout << "石怪使用技能咒立停,停止了魔咒!" << endl;
} else mfaint -= 1;
}
if (mfaint <= 0) {
if (rand() % 3) {
cout << "石怪使用技能快快复苏 生命增加200" << endl;
mhealth += 200;
}
if (rand() % 3) {
cout << "石怪使用技能铁甲护身 生命增加100 防御增加50" << endl;
mhealth += 100;
mdefense += 50;
}
if (rand() % 3) {
cout << "石怪使用技能神锋无影 攻击增加200 对方扣血200滴" << endl;
hisH -= 200;
mattack += 200;
}
Sleep(1000);
int ran = rand() % 40 - 20;
if (rand() % 10000 > hisSP) {
if (attack + ran > hisD) {
cout << "石怪发起进攻 " << Hname << "扣血" << mattack - hisD + ran << "滴 剩余" << hisH - (mattack - hisD + ran) << "滴" << endl;
hisH -= mattack - hisD + ran;
} else cout << "石怪发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
} else {
if (rand() % 2) cout << "石怪一脚踹了过去,但没有踢中" << endl;
else {
cout << "石怪一脚踹了过去,但只擦着了腰" << endl;
if ((mattack / 3) + ran > hisD) {
cout << Hname << "扣血" << (mattack / 3) + ran - hisD << "滴 剩余" << hisH - ((mattack / 3) + ran - hisD) << "滴" << endl;
hisH -= (mattack / 3) + ran - hisD;
} else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
}
}
}
Sleep(1000);
if (hisH <= 0) {
if (hisS == 20 && rand() % 3 == 0) {
cout << "对方发动技能:恢复如初 满血复活" << endl;
hisH = ha;
Sleep(1000);
} else {
cout << "对方**亡" << endl;
return 0;
}
}
if (hfaint <= 0) {
if (hisS != 0) {
if (rand() % 3 == 0) {
if (hisS == 14) {
cout << "对方发动技能:快快复苏 生命加200" << endl;
hisH += 200;
}
if (hisS == 15) {
cout << "对方发动技能:盔甲护身 生命加50 防御增加50" << endl;
hisH += 50;
hisD += 50;
}
if (hisS == 17) {
cout << "对方发动技能神锋无影 攻击增加200 扣血200滴" << endl;
health -= 200;
hisA += 200;
}
}
Sleep(1000);
}
int ran = rand() % 40 - 20;
if (rand() % 10000 > mspeed) {
if (hisA + ran > defense) {
cout << Hname << "发起进攻 " << "石怪扣血" << hisA - defense + ran << "滴 剩余" << mhealth - (hisA - defense + ran) << "滴" << endl;
mhealth -= hisA - defense + ran;
} else cout << Hname << "发起进攻 " << "石怪扣血0滴 剩余" << mhealth << "滴" << endl;
} else {
if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;
else {
cout << "对方一脚踹了过来,但只擦着了石怪的腰" << endl;
if ((hisA / 3) + ran > hisD) {
cout << "石怪扣血" << (hisA / 3) + ran - defense << "滴 剩余" << mhealth - ((hisA / 3) + ran - defense) << "滴" << endl;
mhealth -= ((hisA / 3) + ran - defense);
} else cout << "石怪扣血0滴 剩余" << mhealth << "滴" << endl;
}
}
Sleep(1000);
if (mhealth <= 0) {
cout << "石怪**亡" << endl;
return hisH;
}
}
}
return 0;
}
int fight1(string Hname, int hisH, int hisA, int hisD, int hisS, int hisSP) {
int hfaint = 0, hhurt = 0, hbeat = 0;
int mfaint = 0, mhurt = 0;
dead = false;
int ha = hisA;
int his = hisA + hisD + hisH;
while (1) {
if (hfaint > 0) {
if (rand() % 3 == 0) {
cout << "对方使用技能:咒立停!停止了魔咒" << endl;
hfaint = 1;
}
hfaint -= 1;
}
if (hbeat == 1) {
if (rand() % 10 == 0) {
cout << "对方一躲,躲过了你的石头" << endl;
hbeat = 0;
} else {
cout << "对方躲闪不急,石头正好撞在他的鼻子上 扣血50滴" << endl;
hisH -= 50;
}
}
if (mfaint > 0) {
if (Sl[6]) mfaint = 0;
else mfaint -= 1;
}
if (mhurt > 0) {
if (Sl[6]) mhurt = 0;
else mhurt -= 1;
cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;
health -= 200;
}
if (mfaint <= 0) {
if (rand() % 3 && Sl[0]) {
cout << "你使用技能快快复苏 生命增加200" << endl;
health += 200;
}
if (rand() % 3 && Sl[1]) {
cout << "你使用技能铁甲护身 生命增加100 防御增加50" << endl;
health += 100;
defense += 50;
}
if (rand() % 3 && Sl[2]) {
cout << "你使用技能昏昏倒地 " << Hname << "一回合之内不能攻击" << endl;
hfaint += 1;
}
if (rand() % 3 && Sl[3]) {
cout << "你使用技能神锋无影 攻击增加200 扣血200滴" << endl;
hisH -= 200;
attack += 200;
}
if (rand() % 3 && Sl[5]) {
if (rand() % 10) {
cout << "你使用技能统统石化 " << Hname << "二回合之内不能攻击" << endl;
hfaint += 2;
} else {
cout << "你使用技能统统石化 " << Hname << "十回合之内不能攻击" << endl;
hfaint += 10;
}
}
if (rand() % 4 == 0 && Sl[7]) {
cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;
hisH = monsterfight(Hname, hisH, hisA, hisD, hisS, hisSP);
if (hisH < 1) return 0;
if (Sl[0]) {
cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;
if (maxhealth < health + 2000) health = maxhealth;
else health += 2000;
}
}
if (rand() % 4 == 0 && Sl[8]) {
cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;
}
if (rand() % 3 && Sl[9]) {
cout << "你使用技能万弹齐发!变出几十块石头" << endl;
hbeat = 1;
}
if (rand() % 3 && Sl[10]) {
cout << "你使用技能钻心咒!对方将疼痛5回合" << endl;
hhurt += 5;
}
if (rand() % 3 && Sl[11]) {
cout << "魂魄出窍!你使用夺魂咒,企图让" << Hname << "自己攻击自己!" << endl;
Sleep((rand() % 1000) + 1000);
cout << Hname << "被你控制了,开始攻击自己" << endl;
Sleep(700);
int ran = rand() % 40 - 20;
if (hisA + ran > hisD) {
cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;
hisH -= hisA - hisD + ran;
} else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;
}
if (rand() % 2 && Sl[12]) {
cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;
hisH /= 4;
}
Sleep(1000);
int ran = rand() % 40 - 20;
if (rand() % 10000 > hisSP) {
if (attack + ran > hisD) {
cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;
hisH -= attack - hisD + ran;
} else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
} else {
if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;
else {
cout << "你一脚踹了过去,但只擦着了腰" << endl;
if ((attack / 3) + ran > hisD) {
cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;
hisH -= (attack / 3) + ran - hisD;
} else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
}
}
}
Sleep(700);
if (hhurt > 0) {
hhurt -= 1;
cout << "对方因中了你的钻心咒,正捂着心大叫呢 扣血200滴" << endl;
hisH -= 200;
}
if (hisH <= 0) {
if (hisS == 20 && rand() % 3 == 0) {
cout << "对方发动技能:恢复如初 满血复活" << endl;
hisH = ha;
Sleep(1000);
} else {
cout << "对方**亡\n获得" << (his / 30) << "经验" << endl;
experience += (his / 30);
if (ane == 3) D_Of_C++;
if (ane1 == 3) D_Of_C1++;
return 0;
}
}
if (hfaint <= 0) {
if (rand() % 3 == 0) {
if (hisS == 14) {
cout << "对方发动技能:快快复苏 生命加200" << endl;
hisH += 200;
}
if (hisS == 15) {
cout << "对方发动技能:盔甲护身 生命加50 防御增加50" << endl;
hisH += 50;
hisD += 50;
}
if (hisS == 17) {
cout << "对方发动技能神锋无影 攻击增加200 扣血200滴" << endl;
health -= 200;
hisA += 200;
}
Sleep(1000);
}
int ran = rand() % 40 - 20;
if (rand() % 10000 > speed) {
if (hisA + ran > defense) {
cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;
health -= hisA - defense + ran;
} else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;
} else {
if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;
else {
cout << "对方一脚踹了过来,但只擦着了你的腰" << endl;
if ((hisA / 3) + ran > hisD) {
cout << "你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;
health -= ((hisA / 3) + ran - defense);
} else cout << "你扣血0滴 剩余" << health << "滴" << endl;
}
}
Sleep(700);
if (health <= 0) {
if (Sl[6] && rand() % 2) {
cout << "你发动技能:恢复如初 满血复活" << endl;
health = maxhealth;
Sleep(1000);
} else {
cout << "你**亡";
health = 20;
dead = true;
return 0;
}
}
}
}
return 0;
}
int fight2(string Hname, int hisH, int hisA, int hisD, int hisS, int hisSP) {
int hfaint = 0, hhurt = 0, hbeat = 0;
int mfaint = 0, mhurt = 0;
dead = false;
int ha = hisA;
int his = hisA + hisD + hisH;
while (1) {
if (hfaint > 0) {
if (rand() % 3 == 0) {
cout << "对方使用技能:咒立停!停止了魔咒";
hfaint = 1;
}
hfaint -= 1;
}
if (hbeat == 1) {
if (rand() % 10 == 0) {
cout << "对方一躲,躲过了你的石头" << endl;
hbeat = 0;
} else {
cout << "对方躲闪不急,石头正好撞在他的鼻子上 扣血50滴" << endl;
hisH -= 50;
}
}
if (mfaint > 0) {
if (Sl[6]) mfaint = 0;
else mfaint -= 1;
}
if (mhurt > 0) {
if (Sl[6]) mhurt = 0;
else mhurt -= 1;
cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;
health -= 200;
}
if (mfaint <= 0) {
if (rand() % 3 && Sl[0]) {
cout << "你使用技能快快复苏 生命增加200" << endl;
health += 200;
}
if (rand() % 3 && Sl[1]) {
cout << "你使用技能铁甲护身 生命增加100 防御增加50" << endl;
health += 100;
defense += 50;
}
if (rand() % 3 && Sl[2]) {
cout << "你使用技能昏昏倒地 " << Hname << "一回合之内不能攻击" << endl;
hfaint += 1;
}
if (rand() % 3 && Sl[3]) {
cout << "你使用技能神锋无影 攻击增加200 扣血200滴" << endl;
hisH -= 200;
attack += 200;
}
if (rand() % 3 && Sl[5]) {
if (rand() % 10) {
cout << "你使用技能统统石化 " << Hname << "二回合之内不能攻击" << endl;
hfaint += 2;
} else {
cout << "你使用技能统统石化 " << Hname << "十回合之内不能攻击" << endl;
hfaint += 10;
}
}
if (rand() % 4 == 0 && Sl[7]) {
cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;
hisH = monsterfight(Hname, hisH, hisA, hisD, hisS, hisSP);
if (hisH < 1) return 0;
if (Sl[0]) {
cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;
if (maxhealth < health + 2000) health = maxhealth;
else health += 2000;
}
Sleep(1000);
}
if (rand() % 4 == 0 && Sl[8]) {
cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;
}
if (rand() % 3 && Sl[9]) {
cout << "你使用技能万弹齐发!变出几十块石头" << endl;
hbeat = 1;
}
if (rand() % 3 && Sl[10]) {
cout << "你使用技能钻心咒!对方将疼痛5回合" << endl;
hhurt += 5;
}
if (rand() % 3 && Sl[11]) {
cout << "魂魄出窍!你使用夺魂咒,企图让" << Hname << "自己攻击自己!" << endl;
Sleep((rand() % 1000) + 1000);
cout << Hname << "被你控制了,开始攻击自己" << endl;
Sleep(700);
int ran = rand() % 40 - 20;
if (hisA + ran > hisD) {
cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;
hisH -= hisA - hisD + ran;
} else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;
}
if (rand() % 2 && Sl[12]) {
cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;
hisH /= 4;
}
Sleep(1000);
int ran = rand() % 40 - 20;
if (rand() % 10000 > hisSP) {
if (attack + ran > hisD) {
cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;
hisH -= attack - hisD + ran;
} else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
} else {
if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;
else {
cout << "你一脚踹了过去,但只擦着了腰" << endl;
if ((attack / 3) + ran > hisD) {
cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;
hisH -= (attack / 3) + ran - hisD;
} else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
}
}
}
Sleep(700);
if (hhurt > 0) {
hhurt -= 1;
cout << "对方因中了你的钻心咒,正捂着心大叫呢 扣血200滴" << endl;
hisH -= 200;
}
if (hisH <= 0) {
if (hisS == 20 && rand() % 3 == 0) {
cout << "对方发动技能:恢复如初 满血复活" << endl;
hisH = ha;
Sleep(1000);
} else {
cout << "对方**亡\n获得" << (his / 200) << "金币" << endl;
money += (his / 200);
if (ane == 3) D_Of_C++;
if (ane1 == 3) D_Of_C1++;
return 0;
}
}
if (hfaint <= 0) {
if (rand() % 3 == 0) {
if (hisS == 14) {
cout << "对方发动技能:快快复苏 生命加200" << endl;
hisH += 200;
}
if (hisS == 15) {
cout << "对方发动技能:盔甲护身 生命加50 防御增加50" << endl;
hisH += 50;
hisD += 50;
}
if (hisS == 17) {
cout << "对方发动技能神锋无影 攻击增加200 扣血200滴" << endl;
health -= 200;
hisA += 200;
}
Sleep(1000);
}
int ran = rand() % 40 - 20;
if (rand() % 10000 > speed) {
if (hisA + ran > defense) {
cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;
health -= hisA - defense + ran;
} else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;
} else {
if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;
else {
cout << "对方一脚踹了过来,但只擦着了你的腰" << endl;
if ((hisA / 3) + ran > hisD) {
cout << "你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;
health -= ((hisA / 3) + ran - defense);
} else cout << "你扣血0滴 剩余" << health << "滴" << endl;
}
}
Sleep(700);
if (health <= 0) {
if (Sl[6] && rand() % 2) {
cout << "你发动技能:恢复如初 满血复活" << endl;
health = maxhealth;
Sleep(1000);
} else {
cout << "你**亡";
health = 20;
dead = true;
return 0;
}
}
}
}
return 0;
}
int fight(string Hname, int hisH, int hisA, int hisD, int hisS, int hisSP) {
int hfaint = 0, hhurt = 0, hbeat = 0;
int mfaint = 0, mhurt = 0;
dead = false;
int ha = hisA;
int his = hisA + hisD + hisH;
while (1) {
if (hfaint > 0) {
if (rand() % 3 == 0) {
cout << "对方使用技能:咒立停!停止了魔咒" << endl;
hfaint = 0;
} else hfaint -= 1;
}
if (hbeat == 1) {
if (rand() % 10 == 0) {
cout << "对方一躲,躲过了你的石头" << endl;
hbeat = 0;
} else {
cout << "对方躲闪不急,石头正好撞在他的鼻子上 扣血50滴" << endl;
hisH -= 50;
}
}
if (mfaint > 0) {
if (Sl[6]) mfaint = 0;
else mfaint -= 1;
}
if (mhurt > 0) {
if (Sl[6]) mhurt = 0;
else mhurt -= 1;
cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;
health -= 200;
}
if (mfaint <= 0) {
if (rand() % 3 && Sl[0]) {
cout << "你使用技能快快复苏 生命增加200" << endl;
health += 200;
}
if (rand() % 3 && Sl[1]) {
cout << "你使用技能铁甲护身 生命增加100 防御增加50" << endl;
health += 100;
defense += 50;
}
if (rand() % 3 && Sl[2]) {
cout << "你使用技能昏昏倒地 " << Hname << "一回合之内不能攻击" << endl;
hfaint += 1;
}
if (rand() % 3 && Sl[3]) {
cout << "你使用技能神锋无影 攻击增加200 扣血200滴" << endl;
hisH -= 200;
attack += 200;
}
if (rand() % 3 && Sl[5]) {
if (rand() % 10) {
cout << "你使用技能统统石化 " << Hname << "二回合之内不能攻击" << endl;
hfaint += 2;
} else {
cout << "你使用技能统统石化 " << Hname << "十回合之内不能攻击" << endl;
hfaint += 10;
}
}
if (rand() % 4 == 0 && Sl[7]) {
cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;
hisH = monsterfight(Hname, hisH, hisA, hisD, hisS, hisSP);
if (hisH < 1) return 0;
if (Sl[0]) {
cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;
if (maxhealth < health + 2000) health = maxhealth;
else health += 2000;
}
}
if (rand() % 4 == 0 && Sl[8]) {
cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;
}
if (rand() % 3 && Sl[9]) {
cout << "你使用技能万弹齐发!变出几十块石头" << endl;
hbeat = 1;
}
if (rand() % 3 && Sl[10]) {
cout << "你使用技能钻心咒!对方将疼痛5回合" << endl;
hhurt += 5;
}
if (rand() % 3 && Sl[11]) {
cout << "魂魄出窍!你使用夺魂咒,企图让" << Hname << "自己攻击自己!" << endl;
Sleep((rand() % 1000) + 1000);
cout << Hname << "被你控制了,开始攻击自己" << endl;
Sleep(700);
int ran = rand() % 40 - 20;
if (hisA + ran > hisD) {
cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;
hisH -= hisA - hisD + ran;
} else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;
}
if (rand() % 2 && Sl[12]) {
cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;
hisH /= 4;
}
Sleep(1000);
int ran = rand() % 40 - 20;
if (rand() % 10000 > hisSP) {
if (attack + ran > hisD) {
cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;
hisH -= attack - hisD + ran;
} else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
} else {
if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;
else {
cout << "你一脚踹了过去,但只擦着了腰" << endl;
if ((attack / 3) + ran > hisD) {
cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;
hisH -= (attack / 3) + ran - hisD;
} else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
}
}
}
Sleep(700);
if (hhurt > 0) {
hhurt -= 1;
cout << "对方因中了你的钻心咒,正捂着心大叫呢 扣血200滴" << endl;
hisH -= 200;
}
if (hisH <= 0) {
if (hisS == 20 && rand() % 3 == 0) {
cout << "对方发动技能:恢复如初 满血复活" << endl;
hisH = ha;
Sleep(1000);
} else {
cout << "对方**亡\n获得" << his / 30 << "元" << endl;
money += his / 30;
experience += (his / 30) * 10;
if (ane == 3) D_Of_C++;
if (ane1 == 3) D_Of_C1++;
return 0;
}
}
if (hfaint <= 0) {
if (rand() % 3 == 0) {
if (hisS == 14) {
cout << "对方发动技能:快快复苏 生命加200" << endl;
hisH += 200;
}
if (hisS == 15) {
cout << "对方发动技能:盔甲护身 生命加50 防御增加50" << endl;
hisH += 50;
hisD += 50;
}
if (hisS == 17) {
cout << "对方发动技能神锋无影 攻击增加200 扣血200滴" << endl;
health -= 200;
hisA += 200;
}
Sleep(1000);
}
int ran = rand() % 40 - 20;
if (rand() % 10000 > speed) {
if (hisA + ran > defense) {
cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;
health -= hisA - defense + ran;
} else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;
} else {
if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;
else {
cout << "对方一脚踹了过来,但只擦着了你的腰" << endl;
if ((hisA / 3) + ran > hisD) {
cout << "你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;
health -= ((hisA / 3) + ran - defense);
} else cout << "你扣血0滴 剩余" << health << "滴" << endl;
}
}
Sleep(700);
if (health <= 0) {
if (Sl[6] && rand() % 2) {
cout << "你发动技能:恢复如初 满血复活" << endl;
health = maxhealth;
Sleep(1000);
} else {
cout << "你**亡" << endl;
health = 20;
dead = true;
return 0;
}
}
}
}
return 0;
}
int street() {
switch (rand() % 6) {
case 0:
if (camp) {
int f;
cout << "你遇到了一个路人" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("路人", 500, 110, 0, 14, 1000);
if (!dead && rand() % 2) {
if (rand() % 4 == 0) {
cout << "获得一瓶经验药水" << endl;
bag[22] += 1;
} else if (rand() % 4 == 1) {
cout << "获得一瓶攻击药水" << endl;
bag[21] += 1;
} else if (rand() % 4 == 2) {
cout << "获得一瓶生命药水" << endl;
bag[19] += 1;
} else {
cout << "获得一瓶防御药水" << endl;
bag[20] += 1;
}
}
}
} else {
int f;
cout << "你遇到了一个小混混" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("小混混", 500, 110, 0, 15, 1000);
if (!dead && rand() % 2) {
if (rand() % 4 == 0) {
cout << "获得一瓶经验药水" << endl;
bag[22] += 1;
} else if (rand() % 4 == 1) {
cout << "获得一瓶攻击药水" << endl;
bag[21] += 1;
} else if (rand() % 4 == 2) {
cout << "获得一瓶生命药水" << endl;
bag[19] += 1;
} else {
cout << "获得一瓶防御药水" << endl;
bag[20] += 1;
}
}
}
}
break;
case 1:
if (camp) {
int f;
cout << "你遇到了一个警察" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("警察", 2000, 500, 15, 15, 1000);
if (!dead && rand() % 3 != 0) {
if (rand() % 5 == 0) {
cout << "获得两瓶经验药水" << endl;
bag[22] += 2;
} else if (rand() % 5 == 1) {
cout << "获得两瓶攻击药水" << endl;
bag[21] += 2;
} else if (rand() % 5 == 2) {
cout << "获得两瓶生命药水" << endl;
bag[19] += 2;
} else if (rand() % 5 == 3) {
cout << "获得一瓶全幅药水" << endl;
bag[23] += 1;
} else {
cout << "获得两瓶防御药水" << endl;
bag[20] += 2;
}
}
}
} else {
int f;
cout << "你遇到了一个小食**徒" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("食**徒", 2000, 500, 15, 15, 1000);
if (!dead && rand() % 3 != 0) {
if (rand() % 5 == 0) {
cout << "获得两瓶经验药水" << endl;
bag[22] += 2;
} else if (rand() % 5 == 1) {
cout << "获得两瓶攻击药水" << endl;
bag[21] += 2;
} else if (rand() % 5 == 2) {
cout << "获得两瓶生命药水" << endl;
bag[19] += 2;
} else if (rand() % 5 == 3) {
cout << "获得一瓶全幅药水" << endl;
bag[23] += 1;
} else {
cout << "获得两瓶防御药水" << endl;
bag[20] += 2;
}
}
}
}
break;
case 2:
if (camp) {
int f;
cout << "你遇到了一个凤凰社成员" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("凤凰社成员", 5000, 700, 50, 16, 1500);
if (!dead && rand() % 4 != 0) {
if (rand() % 5 == 0) {
cout << "获得三瓶经验药水" << endl;
bag[22] += 3;
} else if (rand() % 5 == 1) {
cout << "获得三瓶攻击药水" << endl;
bag[21] += 3;
} else if (rand() % 5 == 2) {
cout << "获得三瓶生命药水" << endl;
bag[19] += 3;
} else if (rand() % 5 == 3) {
cout << "获得两瓶全幅药水" << endl;
bag[23] += 2;
} else {
cout << "获得三瓶防御药水" << endl;
bag[20] += 3;
}
}
}
} else {
int f;
cout << "你遇到了一个真食**徒" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("食**徒", 5000, 700, 50, 15, 1500);
if (!dead && rand() % 4 != 0) {
if (rand() % 5 == 0) {
cout << "获得三瓶经验药水" << endl;
bag[22] += 3;
} else if (rand() % 5 == 1) {
cout << "获得三瓶攻击药水" << endl;
bag[21] += 3;
} else if (rand() % 5 == 2) {
cout << "获得三瓶生命药水" << endl;
bag[19] += 3;
} else if (rand() % 5 == 3) {
cout << "获得两瓶全幅药水" << endl;
bag[23] += 2;
} else {
cout << "获得三瓶防御药水" << endl;
bag[20] += 3;
}
}
}
}
break;
case 3:
if (camp) {
int f;
cout << "你遇到了一个傲罗·穆迪" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("穆迪", 10000, 1200, 250, 17, 2000);
if (!dead) {
if (rand() % 3) {
if (rand() % 2) {
cout << "获得技能书神锋无影" << endl;
bag[9]++;
} else {
cout << "获得技能书快快复苏" << endl;
bag[6]++;
}
}
if (rand() % 4) {
if (rand() % 5 == 0) {
cout << "获得四瓶经验药水" << endl;
bag[22] += 4;
} else if (rand() % 5 == 1) {
cout << "获得四瓶攻击药水" << endl;
bag[21] += 4;
} else if (rand() % 5 == 2) {
cout << "获得四瓶生命药水" << endl;
bag[19] += 4;
} else if (rand() % 5 == 3) {
cout << "获得三瓶全幅药水" << endl;
bag[23] += 3;
} else {
cout << "获得四瓶防御药水" << endl;
bag[20] += 4;
}
}
}
}
} else {
int f;
cout << "你遇到了卢修斯·马尔福" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("马尔福", 10000, 1200, 250, 17, 2000);
if (!dead) {
if (rand() % 3) {
if (rand() % 2) {
cout << "获得技能书神锋无影" << endl;
bag[9]++;
} else {
cout << "获得技能书快快复苏" << endl;
bag[6]++;
}
}
if (rand() % 4) {
if (rand() % 5 == 0) {
cout << "获得四瓶经验药水" << endl;
bag[22] += 4;
} else if (rand() % 5 == 1) {
cout << "获得四瓶攻击药水" << endl;
bag[21] += 4;
} else if (rand() % 5 == 2) {
cout << "获得四瓶生命药水" << endl;
bag[19] += 4;
} else if (rand() % 5 == 3) {
cout << "获得三瓶全幅药水" << endl;
bag[23] += 3;
} else {
cout << "获得四瓶防御药水" << endl;
bag[20] += 4;
}
}
}
}
}
if (!dead)
if (ane1 == 2) D_Of_C1++;
break;
case 4:
if (camp) {
int f;
cout << "你遇到了卢平" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("卢平", 100000, 12000, 2500, 17, 4000);
if (!dead) {
if (rand() % 3) {
if (rand() % 2) {
cout << "获得技能书恢复如初" << endl;
bag[12]++;
} else {
cout << "获得技能书阿瓦达索命" << endl;
bag[18]++;
}
}
if (rand() % 5) {
if (rand() % 5 == 0) {
cout << "获得四瓶经验药水" << endl;
bag[22] += 4;
} else if (rand() % 5 == 1) {
cout << "获得四瓶攻击药水" << endl;
bag[21] += 4;
} else if (rand() % 5 == 2) {
cout << "获得四瓶生命药水" << endl;
bag[19] += 4;
} else if (rand() % 5 == 3) {
cout << "获得三瓶全幅药水" << endl;
bag[23] += 3;
} else {
cout << "获得四瓶防御药水" << endl;
bag[20] += 4;
}
}
}
}
} else {
int f;
cout << "你遇到了食**徒·卡卡洛夫" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("卡卡洛夫", 100000, 12000, 2500, 170, 4000);
if (!dead) {
if (rand() % 3) {
if (rand() % 2) {
cout << "获得技能书恢复如初" << endl;
bag[12]++;
} else {
cout << "获得技能书阿瓦达索命" << endl;
bag[18]++;
}
}
if (rand() % 5) {
if (rand() % 5 == 0) {
cout << "获得四瓶经验药水" << endl;
bag[22] += 4;
} else if (rand() % 5 == 1) {
cout << "获得四瓶攻击药水" << endl;
bag[21] += 4;
} else if (rand() % 5 == 2) {
cout << "获得四瓶生命药水" << endl;
bag[19] += 4;
} else if (rand() % 5 == 3) {
cout << "获得三瓶全幅药水" << endl;
bag[23] += 3;
} else {
cout << "获得四瓶防御药水" << endl;
bag[20] += 4;
}
}
}
}
}
break;
case 5:
if (camp) {
int f;
cout << "你遇到了邓布利多" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("邓布利多", 300000, 36000, 7500, 20, 5000);
if (!dead) {
if (rand() % 3) {
if (rand() % 2) {
cout << "获得技能书恢复如初" << endl;
bag[12]++;
} else {
cout << "获得技能书阿瓦达索命" << endl;
bag[18]++;
}
}
if (rand() % 5) {
if (rand() % 5 == 0) {
cout << "获得四瓶经验药水" << endl;
bag[22] += 4;
} else if (rand() % 5 == 1) {
cout << "获得四瓶攻击药水" << endl;
bag[21] += 4;
} else if (rand() % 5 == 2) {
cout << "获得四瓶生命药水" << endl;
bag[19] += 4;
} else if (rand() % 5 == 3) {
cout << "获得三瓶全幅药水" << endl;
bag[23] += 3;
} else {
cout << "获得四瓶防御药水" << endl;
bag[20] += 4;
}
}
}
}
} else {
int f;
cout << "你遇到了纳尼吉" << endl;
cout << "1进攻/2逃跑" << endl;
cin >> f;
if (f == 1) {
fight("纳尼吉", 300000, 36000, 7500, 20, 5000);
if (!dead) {
if (rand() % 3) {
if (rand() % 2) {
cout << "获得技能书恢复如初" << endl;
bag[12]++;
} else {
cout << "获得技能书阿瓦达索命" << endl;
bag[18]++;
}
}
if (rand() % 5) {
if (rand() % 5 == 0) {
cout << "获得四瓶经验药水" << endl;
bag[22] += 4;
} else if (rand() % 5 == 1) {
cout << "获得四瓶攻击药水" << endl;
bag[21] += 4;
} else if (rand() % 5 == 2) {
cout << "获得四瓶生命药水" << endl;
bag[19] += 4;
} else if (rand() % 5 == 3) {
cout << "获得三瓶全幅药水" << endl;
bag[23] += 3;
} else {
cout << "获得四瓶防御药水" << endl;
bag[20] += 4;
}
}
}
}
}
if (!dead)
if (ane1 == 0) D_Of_C1++;
break;
}
Sleep(1000);
return 0;
}
int buy(int p, int m) {
if (money < m) {
cout << "没钱,打出去!" << endl;
if (camp) {
cout << "1** 2逃离" << endl;
int a;
cin >> a;
if (a == 1) {
fight("员工", 1000, 100, 10, 0, 1000);
if (dead) return 0;
cout << "另外一个员工冲了过来" << endl;
fight("员工", 1000, 100, 10, 14, 1000);
if (dead) return 0;
cout << "另外一个员工冲了过来" << endl;
fight("员工", 1000, 100, 10, 14, 2000);
if (dead) return 0;
cout << "员工头冲了过来" << endl;
fight("员工头", 5000, 5000, 10, 14, 2000);
if (dead) return 0;
cout << "店主冲了过来" << endl;
fight("店主", 10000, 1000, 100, 15, 4000);
if (dead) return 0;
cout << "获得100元" << endl;
money += 100;
if (rand() % 10 < 3) {
Sleep(3000);
cout << "你翻了半天,终于找到了你要卖的东西" << endl;
bag[p]++;
} else {
Sleep(3000);
cout << "你翻了半天,还是没找到你要卖的东西" << endl;
cout << "你要不要到大街上消消气(**)" << endl;
cout << "1要! 2不必了" << endl;
int q;
cin >> q;
if (q == 1) street();
}
}
}
} else {
cout << "购买成功" << endl;
bag[p]++;
money -= m;
if (ane == 1) D_Of_C++;
if (ane1 == 1) D_Of_C1 += m;
}
Sleep(1000);
return 0;
}
int buywand(int p, int m) {
if (money < m) cout << "没钱,打出去!" << endl;
else {
cout << "购买成功" << endl;
wand[p - 6]++;
money -= m;
if (ane == 1) D_Of_C++;
if (ane1 == 1) D_Of_C1 += m;
}
Sleep(1000);
return 0;
}
int make(int w1, int w2, int c1, int c2) {
if (w1 < 24 || w2 < 33) {
cout << "根本就没有这种材料,你眼瞎啊!" << endl;
Sleep(1000);
return 0;
}
if (c1 == 0 || c2 == 0) {
cout << "你想拿0个材料来造魔杖!没门!" << endl;
Sleep(1000);
return 0;
}
if (bag[w1] < c1) {
if (bag[w2] < c2) cout << "你木材和杖芯都不够";
else cout << "杖芯不够";
} else if (bag[w2] < c2) cout << "木材不够";
else {
cout << "制作成功" << endl;
string wn;
wn = Material1name[w1 - 24] + Material2name[w2 - 33] + "魔杖";
bag[w1] -= c1;
bag[w2] -= c2;
wand[wandi++]++;
wandpower[wandpoweri++] = c1 * 20 * (w1 - 4) + c1 * 10 * (w2 - 13);
wandname[wandnamei++] = wn;
}
Sleep(1000);
return 0;
}
int levelup() {
if (experience >= level * 100) {
experience -= level * 100;
level++;
maxhealth += 100;
health += 100;
attack += 10;
defense += 5;
speed += 10;
if (rand() % 2 && level > 4) bag[0] += 1;
cout << "你升了1级" << endl;
levelup();
if (ane1 == 4) D_Of_C1++;
}
return 0;
}
int Hos() {
int a;
if (health < maxhealth) {
cout << "剩余生命:(" << health << "/" << maxhealth << ")" << endl;
cout << "需要" << ((maxhealth) - health) / 16 << "元 是否恢复. 等级小于等于10免费恢复" << endl;
cout << "1,是 2,否" << endl;
cin >> a;
if (a == 1) {
if (level > 10) {
if (money >= ((maxhealth) - health) / 16) {
money -= ((maxhealth) - health) / 16;
cout << "恢复成功\n剩余:" << money << "元";
if (ane == 2) D_Of_C++;
if (ane1 == 1) D_Of_C1 += ((maxhealth) - health) / 16;
health = maxhealth;
} else cout << "钱不足" << endl;
} else {
health = maxhealth;
cout << "恢复成功" << endl;
if (ane == 2) D_Of_C++;
}
} else if (a == 2) return 0;
else {
cout << "请别乱输";
Hos();
}
} else {
cout << "生命已满";
Sleep(1000);
}
return 0;
}
int w() {
int aaaa = 1;
while (aaaa) {
for (int i = 0; i < wandi; i++) {
if (wandname[i] == Nwand) cout << "o";
else cout << " ";
cout << i + 1 << "," << wandname[i] << " " << wand[i] << "个" << " 力量:" << wandpower[i] << endl;
}
cout << "1,装备魔杖 2,卸下现有魔杖 0,退出" << endl;
cin >> aaaa;
if (aaaa == 1) {
cout << "请输入魔杖编号" << endl;
int bbbb;
cin >> bbbb;
if (wand[bbbb - 1]) {
if (Nwand != "空手") {
cout << "已装备魔杖";
Sleep(1000);
} else {
cout << "装备成功";
Nwand = wandname[bbbb - 1];
attack += wandpower[bbbb - 1];
}
} else {
cout << "您还未拥有此魔杖";
}
Sleep(1000);
} else if (aaaa == 2) {
for (int ia = 0; ia < wandi - 1; ia++) {
if (Nwand == wandname[ia]) {
cout << "成功卸下";
attack -= wandpower[ia];
break;
}
}
Nwand = "空手";
Sleep(1000);
} else if (aaaa == 0) break;
else cout << "请别乱输";
levelup();
system("cls");
cout << "魔法人士:" << name << endl;
cout << "势力:";
if (camp) cout << "伏地魔" << endl;
else cout << "哈利波特" << endl;
cout << "生命:" << health << "/" << maxhealth << endl;
cout << "攻击:" << attack << endl;
cout << "防御:" << defense << endl;
cout << "速度:" << speed << endl;
cout << "等级:" << level << endl;
cout << "经验:" << experience << "/" << level * 100 << endl;
cout << "金币:" << money << endl;
cout << "1,魔法部(攻击即可占领) 2,大街(**/阻止食**徒) 3,";
if (camp) cout << "霍格沃茨(哈利波特不在) ";
else cout << "伏地魔总部(伏地魔不在) ";
cout << "4,霍格沃茨(最后**) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";
if (camp) cout << "15, 医疗兵(伏地魔的)";
else cout << "15, 庞弗雷女士 ";
cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;
cout << "8" << endl;
cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;
cout << "1" << endl;
}
return 0;
}
int e() {
int bbbb = 1;
while (bbbb) {
cout << "1,经验石R " << bag[1] << "个" << endl;
cout << "2,经验石SR " << bag[2] << "个" << endl;
cout << "3,经验石SSR " << bag[3] << "个" << endl;
cout << "4,经验石SSS " << bag[4] << "个" << endl;
cout << "5,经验石X " << bag[5] << "个" << endl;
cout << "0,退出 6,一键使用";
int aaaa;
cin >> bbbb;
switch (bbbb) {
case 1:
cout << "几个?";
cin >> aaaa;
if (bag[1] >= aaaa) {
cout << "服用成功";
experience += aaaa * 100;
bag[1] -= aaaa;
Sleep(1000);
break;
}
break;
case 2:
cout << "几个?";
cin >> aaaa;
if (bag[2] >= aaaa) {
cout << "服用成功";
experience += aaaa * 250;
bag[2] -= aaaa;
Sleep(1000);
break;
}
break;
case 3:
cout << "几个?";
cin >> aaaa;
if (bag[3] >= aaaa) {
cout << "服用成功";
experience += aaaa * 500;
bag[3] -= aaaa;
Sleep(1000);
break;
}
break;
case 4:
cout << "几个?";
cin >> aaaa;
if (bag[4] >= aaaa) {
cout << "服用成功";
experience += aaaa * 1200;
bag[4] -= aaaa;
Sleep(1000);
break;
}
break;
case 5:
cout << "几个?";
cin >> aaaa;
if (bag[5] >= aaaa) {
cout << "服用成功";
experience += aaaa * 2500;
bag[5] -= aaaa;
Sleep(1000);
break;
}
break;
case 0:
break;
case 6:
cout << "服用成功";
experience += bag[1] * 100;
experience += bag[2] * 250;
experience += bag[3] * 500;
experience += bag[4] * 1200;
experience += bag[5] * 2500;
bag[1] = bag[2] = bag[3] = bag[4] = bag[5] = 0;
break;
default:
cout << "请别乱输";
Sleep(1000);
break;
}
levelup();
system("cls");
cout << "魔法人士:" << name << endl;
cout << "势力:";
if (camp) cout << "伏地魔" << endl;
else cout << "哈利波特" << endl;
cout << "生命:" << health << "/" << maxhealth << endl;
cout << "攻击:" << attack << endl;
cout << "防御:" << defense << endl;
cout << "速度:" << speed << endl;
cout << "等级:" << level << endl;
cout << "经验:" << experience << "/" << level * 100 << endl;
cout << "金币:" << money << endl;
cout << "1,魔法部(攻击即可占领) 2,大街(**/阻止食**徒) 3,";
if (camp) cout << "霍格沃茨(哈利波特不在) ";
else cout << "伏地魔总部(伏地魔不在) ";
cout << "4,霍格沃茨(最后**) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";
if (camp) cout << "15, 医疗兵(伏地魔的)";
else cout << "15, 庞弗雷女士 ";
cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;
cout << "8" << endl;
cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;
cout << "3" << endl;
}
return 0;
}
int p() {
int bbbb = 1;
while (bbbb) {
cout << "1,生命药水 " << bag[19] << "个" << endl;
cout << "2,防御药水 " << bag[20] << "个" << endl;
cout << "3,攻击药水 " << bag[21] << "个" << endl;
cout << "4,经验药水 " << bag[22] << "个" << endl;
cout << "5,速度药水 " << bag[23] << "个" << endl;
cout << "6,全幅药水 " << bag[23] << "个" << endl;
cout << "0,退出 7,一键使用";
cin >> bbbb;
int aaaa;
switch (bbbb) {
case 1:
cout << "几个?";
cin >> aaaa;
if (bag[19] >= aaaa) {
cout << "服用成功";
health += aaaa * 50;
maxhealth += aaaa * 50;
bag[19] -= aaaa;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 2:
cout << "几个?";
cin >> aaaa;
if (bag[20] >= aaaa) {
cout << "服用成功";
defense += aaaa * 10;
bag[20] -= aaaa;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 3:
cout << "几个?";
cin >> aaaa;
if (bag[21] >= aaaa) {
cout << "服用成功";
attack += aaaa * 25;
bag[21] -= aaaa;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 4:
cout << "几个?";
cin >> aaaa;
if (bag[22] >= aaaa) {
cout << "服用成功";
experience += aaaa * 200;
bag[22] -= aaaa;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 5:
cout << "几个?";
cin >> aaaa;
if (bag[43] >= aaaa) {
cout << "服用成功";
speed += aaaa;
bag[43] -= aaaa;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 6:
cout << "几个?";
cin >> aaaa;
if (bag[23] >= aaaa) {
cout << "服用成功";
health += aaaa * 50;
maxhealth += aaaa * 50;
defense += aaaa * 10;
attack += aaaa * 25;
experience += aaaa * 200;
speed += aaaa;
bag[23] -= aaaa;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 7:
cout << "服用成功";
health += bag[19] * 50;
maxhealth += bag[19] * 50;
defense += bag[20] * 10;
attack += bag[21] * 25;
experience += bag[22] * 200;
speed += bag[43];
health += bag[23] * 50;
maxhealth += bag[23] * 50;
defense += bag[23] * 10;
attack += bag[23] * 25;
experience += bag[23] * 200;
speed += bag[23];
bag[19] = 0;
bag[20] = 0;
bag[21] = 0;
bag[22] = 0;
bag[23] = 0;
bag[43] = 0;
break;
case 0:
break;
default:
cout << "请别乱输";
Sleep(1000);
break;
}
levelup();
system("cls");
cout << "魔法人士:" << name << endl;
cout << "势力:";
if (camp) cout << "伏地魔" << endl;
else cout << "哈利波特" << endl;
cout << "生命:" << health << "/" << maxhealth << endl;
cout << "攻击:" << attack << endl;
cout << "防御:" << defense << endl;
cout << "速度:" << speed << endl;
cout << "等级:" << level << endl;
cout << "经验:" << experience << "/" << level * 100 << endl;
cout << "金币:" << money << endl;
cout << "1,魔法部(攻击即可占领) 2,大街(**/阻止食**徒) 3,";
if (camp) cout << "霍格沃茨(哈利波特不在) ";
else cout << "伏地魔总部(伏地魔不在) ";
cout << "4,霍格沃茨(最后**) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";
if (camp) cout << "15, 医疗兵(伏地魔的)";
else cout << "15, 庞弗雷女士 ";
cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;
cout << "8" << endl;
cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;
cout << "2" << endl;
}
return 0;
}
int s() {
int bbbb = 1;
while (bbbb) {
cout << "1,快快复苏 " << bag[6] << "个" << endl;
cout << "2,盔甲护身 " << bag[7] << "个" << endl;
cout << "3,昏昏倒地 " << bag[8] << "个" << endl;
cout << "4,神锋无影 " << bag[9] << "个" << endl;
cout << "5,咒立停 " << bag[10] << "个" << endl;
cout << "6,统统石化 " << bag[11] << "个" << endl;
cout << "7,恢复如初 " << bag[12] << "个" << endl;
cout << "8,召唤咒 " << bag[13] << "个" << endl;
cout << "9,一忘皆空 " << bag[14] << "个" << endl;
cout << "10,万箭齐发 " << bag[15] << "个" << endl;
cout << "11,钻心剜骨 " << bag[16] << "个" << endl;
cout << "12,魂魄出窍 " << bag[17] << "个" << endl;
cout << "13,阿瓦达索命 " << bag[18] << "个" << endl;
cout << "0,退出";
cin >> bbbb;
switch (bbbb) {
case 1:
if (bag[6] >= 1) {
cout << "学习成功" << endl;
cout << "能够恢复200滴血" << endl;
bag[6] -= 1;
Sl[0] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 2:
if (bag[7] >= 1) {
cout << "学习成功" << endl;
cout << "能恢复100滴血并加50防御" << endl;
bag[7] -= 1;
Sl[1] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 3:
if (bag[8] >= 1) {
cout << "学习成功" << endl;
cout << "能使对方暂停一回合" << endl;
bag[8] -= 1;
Sl[2] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 4:
if (bag[9] >= 1) {
cout << "学习成功" << endl;
cout << "攻击加250并扣对方500滴血" << endl;
bag[9] -= 1;
Sl[3] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 5:
if (bag[10] >= 1) {
cout << "学习成功" << endl;
cout << "能使对方对你施加的状态没用" << endl;
bag[10] -= 1;
Sl[4] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 6:
if (bag[11] >= 1) {
cout << "学习成功" << endl;
cout << "%10概率能事对方冻结10回合" << endl;
cout << "%90概率能事对方冻结2回合" << endl;
bag[11] -= 1;
Sl[5] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 7:
if (bag[12] >= 1) {
cout << "学习成功" << endl;
cout << "%50概率能起**回生" << endl;
bag[12] -= 1;
Sl[6] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 8:
if (bag[13] >= 1) {
cout << "学习成功" << endl;
cout << "能召唤生物进攻" << endl;
bag[13] -= 1;
Sl[7] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 9:
if (bag[14] >= 1) {
cout << "学习成功" << endl;
cout << "%90能使对方无技能" << endl;
cout << "%10能使对方防御变为0" << endl;
bag[14] -= 1;
Sl[8] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 10:
if (bag[15] >= 1) {
cout << "学习成功" << endl;
cout << "对方一直减10滴血直到对方躲过(%10躲过)" << endl;
bag[15] -= 1;
Sl[9] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 11:
if (bag[16] >= 1) {
cout << "学习成功" << endl;
cout << "对方扣血5回合,每回合扣200滴" << endl;
bag[16] -= 1;
Sl[10] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 12:
if (bag[17] >= 1) {
cout << "学习成功" << endl;
cout << "让对方自己攻击自己(当然不攻击你)" << endl;
bag[17] -= 1;
Sl[11] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 13:
if (bag[18] >= 1) {
cout << "学习成功" << endl;
cout << "让对方直接扣3/4的血" << endl;
bag[18] -= 1;
Sl[12] = 1;
Sleep(1000);
break;
} else cout << "物品不足" << endl;
break;
case 0:
break;
default:
cout << "请别乱输";
Sleep(1000);
break;
}
system("cls");
cout << "魔法人士:" << name << endl;
cout << "势力:";
if (camp) cout << "伏地魔" << endl;
else cout << "哈利波特" << endl;
cout << "生命:" << health << "/" << maxhealth << endl;
cout << "攻击:" << attack << endl;
cout << "防御:" << defense << endl;
cout << "速度:" << speed << endl;
cout << "等级:" << level << endl;
cout << "经验:" << experience << "/" << level * 100 << endl;
cout << "金币:" << money << endl;
cout << "1,魔法部(攻击即可占领) 2,大街(**/阻止食**徒) 3,";
if (camp) cout << "霍格沃茨(哈利波特不在) ";
else cout << "伏地魔总部(伏地魔不在) ";
cout << "4,霍格沃茨(最后**) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";
if (camp) cout << "15, 医疗兵(伏地魔的)";
else cout << "15, 庞弗雷女士 ";
cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;
cout << "8" << endl;
cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;
cout << "4" << endl;
}
return 0;
}
int LD() {
cout << "剩余抽奖券:" << bag[0] << "张" << endl;
cout << "1,抽奖 2,退出" << endl;
int a;
cin >> a;
if (a == 1) {
cout << "抽几次?";
int num;
cin >> num;
if (bag[0] >= num) {
bag[0] -= num;
int num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0;
int num6 = 0, num7 = 0, num8 = 0, num9 = 0, num10 = 0;
int num11 = 0;
for (int i = 0; i < num; i++) {
switch (rand() % 20) {
case 0:
case 1:
num1++;
bag[1]++;
break;
case 2:
case 3:
num2++;
bag[2]++;
break;
case 4:
case 5:
num3++;
bag[3]++;
break;
case 6:
case 7:
num4++;
bag[4]++;
break;
case 8:
num5++;
bag[5]++;
break;
case 9:
case 10:
num6++;
bag[19]++;
break;
case 11:
case 12:
num7++;
bag[20]++;
break;
case 13:
case 14:
num8++;
bag[21]++;
break;
case 15:
case 16:
num9++;
bag[22]++;
break;
case 17:
num10++;
bag[23]++;
break;
case 18:
num11 += 50;
money += 50;
break;
case 19:
num11 += 100;
money += 100;
break;
}
}
cout << "你获得了经验石R " << num1 << "个" << endl;
cout << "经验石SR " << num2 << "个" << endl;
cout << "经验石SSR " << num3 << "个" << endl;
cout << "经验石SSS " << num4 << "个" << endl;
cout << "经验石X " << num5 << "个" << endl;
cout << "生命药水 " << num6 << "个" << endl;
cout << "防御药水 " << num7 << "个" << endl;
cout << "攻击药水 " << num8 << "个" << endl;
cout << "经验药水 " << num9 << "个" << endl;
cout << "全幅药水 " << num10 << "个" << endl;
cout << "金币 " << num11 << "个" << endl;
} else cout << "您的抽奖券不足" << endl;
} else if (a == 2) return 0;
else {
cout << "请别乱输。";
system("cls");
LD();
}
_getch();
return 0;
}
int dig() {
cout << "进入挖矿状态";
Sleep(1000);
system("cls");
int x = 0;
while (1) {
system("cls");
cout << "挖";
Sleep(200);
cout << "矿";
Sleep(200);
cout << "中";
Sleep(200);
cout << ".";
Sleep(100);
cout << ".";
Sleep(100);
cout << "." << endl;
x++;
Sleep(500);
int ad = rand() % 3;
if (ad == 2) {
ad = rand() % 100;
if (ad < 6) {
switch (rand() % 3) {
case 0:
cout << "你挖到了技能书铁甲咒!!!" << endl;
bag[7]++;
break;
case 1:
cout << "你挖到了技能书咒立停!!!" << endl;
bag[10]++;
break;
case 2:
cout << "你挖到了技能书石化咒!!!" << endl;
bag[11]++;
break;
}
Sleep(500);
} else if (ad >= 6 && ad < 20) {
switch (rand() % 20) {
case 0:
cout << "你挖到了夜琪的尾羽!!!" << endl;
bag[32]++;
break;
case 1:
case 2:
cout << "你挖到了独角兽尾毛!" << endl;
bag[30]++;
break;
case 3:
case 4:
cout << "你挖到了龙神经!" << endl;
bag[31]++;
break;
case 5:
case 6:
cout << "你挖到了凤凰羽毛!" << endl;
bag[29]++;
break;
case 7:
case 8:
cout << "你挖到了龙心腱" << endl;
bag[27]++;
break;
case 9:
case 10:
cout << "你挖到了雷鸟尾羽" << endl;
bag[28]++;
break;
case 11:
case 12:
case 13:
cout << "你挖到了马形水怪的鬃毛" << endl;
bag[26]++;
break;
case 14:
case 15:
case 16:
cout << "你挖到了猫狸子胡须" << endl;
bag[24]++;
break;
case 17:
case 18:
case 19:
cout << "你挖到了媚娃头发" << endl;
bag[25]++;
break;
}
Sleep(500);
} else if (ad >= 20 && ad < 50) {
switch (rand() % 10) {
case 0:
cout << "你挖到了桦木" << endl;
bag[33]++;
break;
case 1:
cout << "你挖到了紫衫木" << endl;
bag[34]++;
break;
case 2:
cout << "你挖到了冬青木" << endl;
bag[35]++;
break;
case 3:
cout << "你挖到了山楂木柳条" << endl;
bag[36]++;
break;
case 4:
cout << "你挖到了橡木" << endl;
bag[37]++;
break;
case 5:
cout << "你挖到了械木" << endl;
bag[38]++;
break;
case 6:
cout << "你挖到了山毛榉木" << endl;
bag[39]++;
break;
case 7:
cout << "你挖到了栗木" << endl;
bag[40]++;
break;
case 8:
cout << "你挖到了樱桃木" << endl;
bag[41]++;
break;
case 9:
cout << "你挖到了桃花心木" << endl;
bag[42]++;
break;
}
Sleep(500);
} else if (ad >= 50 && ad <= 100) {
int as = rand() % 20 + 30;
cout << "你挖到了" << as << "金币" << endl;
money += as;
Sleep(500);
}
} else if (ad == 1) {
ad = rand() % 3;
if (ad == 0) {
cout << "你遇到了大老鼠" << endl;
fight("大老鼠", 5000, 500, 50, 20, 1000);
if (dead) {
cout << "你**了" << endl;
return 0;
}
}
if (ad == 1) {
cout << "你遇到了食**徒" << endl;
fight("食**徒", 10000, 1000, 100, 17, 1000);
if (dead) {
cout << "你**了" << endl;
return 0;
}
}
if (ad == 2) {
cout << "你遇到了坏矿工" << endl;
fight("矿工", 5000, 2000, 200, 17, 1000);
if (dead) {
cout << "你**了" << endl;
return 0;
}
}
cout << "是否继续挖矿?" << endl;
cout << "1,是 2,否" << endl;
int ans;
cin >> ans;
if (ans == 2) return 0;
}
}
return 0;
}
int clearance() {
system("cls");
cout << "你在出口处发现了一张纸条,上面写着:";
if (camp) {
cout << "伏地魔,我知道你在找我...我就告诉你吧,我在霍格沃茨等你!" << endl;
cout << " ————哈利·波特" << endl;
} else {
cout << "哈利·波特, 你看到这张纸条的时候, 你们的校已经掌握在我手中, 要么你前来送**,要么我就会把你的同们统统杀**!!!" << endl;
cout << " ——伏地魔" << endl;
}
_getch();
f = 1;
return 0;
}
int maze() {
bool is[101][101];
for (int i = 0; i < 100; i++)
for (int j = 0; j < 100; j++)
is[i][j] = false;
int x = 8, y = 1;
string a[100] = {
"##################################################",
"# 1 # 2 2 3# # 1 #89#1#1# 1 1 #12 #3 #1#",
"#2#1#5 # #1# # ## # ##91 6 #9#7#11## # # 11#",
"# ## ## # # # #### # ##### # ####5## # # #####",
"#2########### # 4 # ## #####4 5##1# #189o",
"# 1 1# #2# ## # ## 5# ######### # #7#8#",
"#1# #1 2# # # #9 # ### # ##2## # ## 5#167#",
"# 1## ## # # ### #4## ## 6 # 3 ### #####5##",
"I 2 #### #### # 1 6 #1# ## 5###6## # #11134##",
"I 1 # 7 # # # # 227# # # # #2 #2#21#5#",
"##1 #1 #1# ## 5 # # #3#### # 1#5# # 1 111#6 #",
"# 2##3##1# ### ## ### # ## #### # #1####### #",
"# ##3 ##1###7# ##### ## # ###3 4## 9 # #",
"#23 # 3 # ##9 ##6 6## ### 9## ##1 # #3 #",
"# # # # # ## # ## ##7 ## # 9 ###9#11##2## ##",
"### # ####### # 2 # #3 # # # 1## 1 1## ##1 #3 #",
"#5 #2 ## # #### # #5# # ### #8###1 #1# #1# #",
"# # # # # # 4 5 # # # 7 # # # #### 8 #9#",
"# 2 # #42 # ## # 11#2#3 9 # ##9 # #999#",
"##################################################",
};
while (1) {
is[x - 1][y - 1] = true;
is[x - 1][y] = true;
is[x - 1][y + 1] = true;
is[x][y - 1] = true;
is[x][y] = true;
is[x][y + 1] = true;
is[x + 1][y - 1] = true;
is[x + 1][y] = true;
is[x + 1][y + 1] = true;
system("cls");
cout << "生命:" << health << "/" << maxhealth << endl;
for (int i = 0; i < 20; i++) {
for (int j = 0; j < 50; j++) {
if (is[i][j]) cout << a[i][j];
else cout << "0";
}
cout << endl;
}
int ch;
ch = _getch();
if (ch == 'a') {
if (a[x][y - 1] == ' ') {
a[x][y - 1] = '@';
a[x][y] = ' ';
y -= 1;
} else if ('0' <= a[x][y - 1] && a[x][y - 1] <= '9') {
cout << "你遇到了" << (int)(a[x][y - 1] - '0') << "级怪物,迎战吧!";
fight("怪物", 10000 * (a[x][y - 1] - '0'), 2500 * (a[x][y - 1] - '0'), 100 * (a[x][y - 1] - '0'), 20, 500 * (a[x][y - 1] - '0'));
if (dead) {
Sleep(1000);
return 0;
}
a[x][y - 1] = '@';
a[x][y] = ' ';
y -= 1;
a[x][y] = ' ';
} else if (a[x][y - 1] == 'I') {
cout << "你是否要退出这个奇怪的世界,如果退出,你现在闯下的江湖都会重置" << endl;
cout << "1确定 2取消" << endl;
int num;
cin >> num;
if (num == 1) {
break;
}
} else if (a[x][y - 1] == 'o') {
cout << "你通关了" << endl;
_getch();
clearance();
}
}
if (ch == 'd') {
if (a[x][y + 1] == ' ') {
a[x][y + 1] = '@';
a[x][y] = ' ';
y += 1;
} else if ('0' <= a[x][y + 1] && a[x][y + 1] <= '9') {
cout << "你遇到了" << (int)(a[x][y + 1] - '0') << "级怪物,迎战吧!";
fight("怪物", 10000 * (a[x][y + 1] - '0'), 2500 * (a[x][y + 1] - '0'), 100 * (a[x][y + 1] - '0'), 20, 500 * (a[x][y + 1] - '0'));
if (dead) {
Sleep(1000);
return 0;
}
a[x][y + 1] = '@';
a[x][y] = ' ';
y += 1;
a[x][y] = ' ';
} else if (a[x][y + 1] == 'I') {
cout << "你是否要退出这个奇怪的世界,如果退出,你现在闯下的江湖都会重置" << endl;
cout << "1确定 2取消" << endl;
int num;
cin >> num;
if (num == 1) {
break;
}
} else if (a[x][y + 1] == 'o') {
cout << "你通关了" << endl;
_getch();
clearance();
}
}
if (ch == 'w') {
if (a[x - 1][y] == ' ') {
a[x - 1][y] = '@';
a[x][y] = ' ';
x -= 1;
} else if ('0' <= a[x - 1][y] && a[x - 1][y] <= '9') {
cout << "你遇到了" << (int)(a[x - 1][y] - '0') << "级怪物,迎战吧!";
fight("怪物", 10000 * (a[x - 1][y] - '0'), 2500 * (a[x - 1][y] - '0'), 100 * (a[x - 1][y] - '0'), 20, 500 * (a[x - 1][y] - '0'));
if (dead) {
Sleep(1000);
return 0;
}
a[x - 1][y] = '@';
a[x][y] = ' ';
x -= 1;
a[x][y] = ' ';
} else if (a[x - 1][y] == 'I') {
cout << "你是否要退出这个奇怪的世界,如果退出,你现在闯下的江湖都会重置" << endl;
cout << "1确定 2取消" << endl;
int num;
cin >> num;
if (num == 1) {
break;
}
} else if (a[x - 1][y] == 'o') {
cout << "你通关了" << endl;
_getch();
clearance();
}
}
if (ch == 's') {
if (a[x + 1][y] == ' ') {
a[x + 1][y] = '@';
a[x][y] = ' ';
x += 1;
} else if ('0' <= a[x + 1][y] && a[x + 1][y] <= '9') {
cout << "你遇到了" << (int)(a[x + 1][y] - '0') << "级怪物,迎战吧!";
fight("怪物", 10000 * (a[x + 1][y] - '0'), 2500 * (a[x + 1][y] - '0'), 100 * (a[x + 1][y] - '0'), 20, 500 * (a[x + 1][y] - '0'));
if (dead) {
Sleep(1000);
return 0;
}
a[x + 1][y] = '@';
a[x][y] = ' ';
x += 1;
a[x][y] = ' ';
} else if (a[x + 1][y] == 'I') {
cout << "你是否要退出这个奇怪的世界,如果退出,你现在闯下的江湖都会重置" << endl;
cout << "1确定 2取消" << endl;
int num;
cin >> num;
if (num == 1) {
break;
}
} else if (a[x + 1][y] == 'o') {
cout << "你通关了" << endl;
_getch();
clearance();
}
}
}
return 0;
}
int DriveOut() {
switch (rand() % 3) {
case 1:
cout << "店主:没钱还敢卖!!!打出去!!!" << endl;
break;
case 2:
cout << "店主:什么!没钱!!!" << endl;
break;
case 3:
cout << "你:可不可以降一降价?" << endl;
cout << "店主:不行!哪有那么简单!" << endl;
break;
}
Sleep(1000);
return 0;
}
int poisonshop() {
system("cls");
cout << "店主:这位客人,您要卖什么?" << endl;
cout << "1,购买 |小生命药水+200| 100元" << endl;
cout << "2,购买 ||大生命药水+500|| 200元" << endl;
cout << "3,购买 |小防御药水 +20| 100元" << endl;
cout << "4,购买 ||大防御药水 +50|| 200元" << endl;
cout << "5,购买 |小攻击药水+100| 100元" << endl;
cout << "6,购买 ||大攻击药水+250|| 200元" << endl;
cout << "7,购买 |小全幅药水| 500元" << endl;
cout << "8,购买 ||中全幅药水|| 1000元" << endl;
cout << "9,购买 |||大全幅药水||| 2000元" << endl;
cout << "10,购买 *|||||极·全幅药水|||||* 10000元" << endl;
cout << "你掏了掏自己的钱包,发现有" << money << "元" << endl;
int which;
cin >> which;
switch (which) {
case 1:
if (money < 100) DriveOut();
else {
money -= 100;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
health += 200;
maxhealth += 200;
}
break;
case 2:
if (money < 200) DriveOut();
else {
money -= 200;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
health += 500;
maxhealth += 500;
}
break;
case 3:
if (money < 100) DriveOut();
else {
money -= 100;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
defense += 20;
}
break;
case 4:
if (money < 200) DriveOut();
else {
money -= 200;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
defense += 50;
}
break;
case 5:
if (money < 100) DriveOut();
else {
money -= 100;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
attack += 100;
}
break;
case 6:
if (money < 200) DriveOut();
else {
money -= 200;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
attack += 250;
}
break;
case 7:
if (money < 500) DriveOut();
else {
money -= 500;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
health += 50;
defense += 5;
attack += 25;
experience += 1000;
}
break;
case 8:
if (money < 1000) DriveOut();
else {
money -= 1000;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
health += 150;
defense += 15;
attack += 75;
experience += 3000;
}
break;
case 9:
if (money < 2000) DriveOut();
else {
money -= 2000;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
health += 450;
defense += 45;
attack += 225;
experience += 9000;
}
break;
case 10:
if (money < 10000) DriveOut();
else {
money -= 10000;
cout << "店主:一路走好!" << endl;
cout << "你拿起药水就喝了下去。" << endl;
health += 2500;
defense += 250;
attack += 1250;
experience += 50000;
}
break;
default:
break;
}
Sleep(1000);
return 0;
}
int bookshop() {
system("cls");
cout << "店主:这里是巫师们卖书的地方,您要卖什么?" << endl;
cout << "1,购买 ||||恢复如初技能书|||| 40000元 现货大量供应" << endl;
cout << "2,购买 ||遗忘咒技能书|| 10000元 已经售完" << endl;
cout << "3,购买 |||钻心咒技能书||| 15000元 现货大量供应" << endl;
cout << "4,购买 |||召唤咒技能书||| 20000元 现货大量供应" << endl;
cout << "5,购买 *|||||咒立停技能书|||||* 25000元 现货大量供应" << endl;
cout << "6,购买 ||||夺魂咒技能书|||| 20000元 现货大量供应" << endl;
cout << "7,购买 ||万弹齐发技能书|| 15000元 现货大量供应" << endl;
cout << "你掏了掏自己的钱包,发现有" << money << "元" << endl;
int which;
cin >> which;
switch (which) {
case 1:
if (money < 40000) DriveOut();
else {
money -= 40000;
cout << "店主:一路走好!" << endl;
bag[12]++;
}
break;
case 2:
cout << "店主:对不起,本书已经售完" << endl;
break;
case 3:
if (money < 20000) DriveOut();
else {
money -= 20000;
cout << "店主:一路走好!" << endl;
bag[16]++;
}
break;
case 4:
if (money < 20000) DriveOut();
else {
money -= 20000;
cout << "店主:一路走好!" << endl;
bag[13]++;
}
break;
case 5:
if (money < 25000) DriveOut();
else {
money -= 25000;
cout << "店主:一路走好!" << endl;
bag[10]++;
}
break;
case 6:
if (money < 20000) DriveOut();
else {
money -= 20000;
cout << "店主:一路走好!" << endl;
bag[17]++;
}
break;
case 7:
if (money < 15000) DriveOut();
else {
money -= 15000;
cout << "店主:一路走好!" << endl;
bag[15]++;
}
break;
default:
break;
}
return 0;
}
int NoticeBoard(int l, int x, int y) {
if (l == 10 && x == 6 && y == 1) {
system("cls");
cout << "跟着'*'走" << endl;
cout << " ——作者" << endl;
_getch();
}
if (l == 10 && x == 8 && y == 12) {
system("cls");
cout << "走吧,谁叫你不听命令呢..." << endl;
cout << " ——作者" << endl;
_getch();
}
if (l == 12 && x == 3 && y == 1) {
system("cls");
cout << "杀出重围!" << endl;
cout << " ——作者" << endl;
_getch();
}
if (l == 12 && x < 4 && y == 20) {
system("cls");
cout << "恭喜通过一半!往下走继续..." << endl;
cout << " ——作者" << endl;
_getch();
}
if (l == 12 && x > 4 && y == 20) {
system("cls");
cout << "恭喜通过一半!往上走继续..." << endl;
cout << " ——作者" << endl;
_getch();
}
if (l == 12 && x == 10) {
system("cls");
cout << "拿走全部奖励吧!" << endl;
cout << " ——作者" << endl;
_getch();
} else {
system("cls");
cout << "回去吧,你来错地方了..." << endl;
_getch();
}
return 0;
}
int checkpoint(int l) {
bool is[101][101];
for (int i = 0; i < 100; i++)
for (int j = 0; j < 100; j++)
is[i][j] = false;
int x = 1, y = 1;
string a[100];
if (l == 1) {
a[0] = "######";
a[1] = "I o";
a[2] = "######";
} else if (l == 2) {
a[0] = "#######";
a[1] = "I 1#";
a[2] = "#### ##";
a[3] = "##1 ##";
a[4] = "#### ##";
a[5] = "#P o";
a[6] = "#######";
} else if (l == 3) {
a[0] = "#########";
a[1] = "I # 1#S#";
a[2] = "# ## ##1#";
a[3] = "# 2 #";
a[4] = "#### ## #";
a[5] = "#P1 #o #";
a[6] = "#########";
} else if (l == 4) {
a[0] = "#######o#######";
a[1] = "I #P3 #";
a[2] = "# ##### #";
a[3] = "# 1P #";
a[4] = "# ##### #";
a[5] = "#S # 2#";
a[6] = "######### #####";
a[7] = "#P121 2 1 11P#";
a[8] = "###############";
} else if (l == 5) {
a[0] = "###############";
a[1] = "I 3 #P3 #";
a[2] = "# 3 # ##### #";
a[3] = "# 2 # 1 #";
a[4] = "# 2 # # ##### #";
a[5] = "# 1 # #P# 2#";
a[6] = "#####2S## ###o#";
a[7] = "#P1 1 # 1 1P#";
a[8] = "###############";
} else if (l == 6) {
a[0] = "###############";
a[1] = "# 11 2 6PP#";
a[2] = "#2# #P#########";
a[3] = "#2##### #S# o";
a[4] = "I #2# ###";
a[5] = "# ##### 11 ###";
a[6] = "# #P##### #####";
a[7] = "#1112 4P#";
a[8] = "###############";
x = 4;
} else if (l == 7) {
a[0] = "###############";
a[1] = "#3 4# P# # B#";
a[2] = "#1# #9## 1# 3#";
a[3] = "#1#6# 9# # ###";
a[4] = "I #7 94 # # o";
a[5] = "# #1 3 ## P# #";
a[6] = "# ########### #";
a[7] = "# 1 P #";
a[8] = "###############";
x = 4;
} else if (l == 8) {
a[0] = "#################";
a[1] = "#PPPPPPPPPPPPPPP#";
a[2] = "#P#############P#";
a[3] = "#PPPP 9999999 PP#";
if (rand() % 100 < 7) a[4] = "#################";
else a[4] = "######### #######";
a[5] = "#2 2#2 2#9##2 P#";
a[6] = "# # # # # #22# #";
a[7] = "# # # # # # #22##";
a[8] = "I # # # # # # # o";
a[9] = "##22# # # # # # #";
a[10] = "# #22# #3# # # #";
a[11] = "#P 2##2 5 2#2 2#";
a[12] = "#################";
x = 8;
} else if (l == 9) {
a[0] = "#################";
a[1] = "I 9###9 I";
a[2] = "# # # #";
a[3] = "# ##P9P## #";
a[4] = "# 9# 9o9 #9 #";
a[5] = "# ##P9P## #";
a[6] = "# # # #";
a[7] = "I 9###9 I";
a[8] = "#################";
if (rand() % 2) x = 7;
if (rand() % 2) y = 15;
} else if (l == 10) {
a[0] = "#############################";
a[1] = "#00*****009***P0000000000000#";
a[2] = "#0*9000*00*000*0**P000000000#";
a[3] = "#0*000**00*0#0*0900*****00**o";
a[4] = "#0*00**00*90#0******000****0#";
a[5] = "#0*00*00**00#0000000***00000#";
a[6] = "#T*00*90*00##################";
a[7] = "I**000***00#================I";
a[8] = "############T################";
x = 7;
y = 1;
} else if (l == 11) {
a[0] = "#############################";
a[1] = "# 33344555#P #";
a[2] = "#22222P 33344566#P ##";
a[3] = "#11 2 33344567#7 8 8 8 8 9######################";
a[4] = "I 1 2 33344567 999999999999999 PPPPo#";
a[5] = "#11 2 33344567#7 8 8 8 8 9######################";
a[6] = "#22222P 33344566#P ##";
a[7] = "# 33344555#P #";
a[8] = "#############################";
x = 4;
y = 1;
} else if (l == 12) {
a[0] = "###################################################";
a[1] = "#999999999999999999.T.999999999P999999999999999999#";
a[2] = "#9999999999.99.99.99T.999999999P999999999999999999#";
a[3] = "#T9...99.99999999999T.999999999P9999999999999999..#";
a[4] = "I...9.9.9999.999.99...999999999P9999999999999999.X#";
a[5] = "#T9...99999999.99999T.999999999P9999999999999999..#";
a[6] = "#9999999.99.999.99.9T.999999999P999999999999999999#";
a[7] = "#99999.9999999999999T.999999999P999999999999999999#";
a[8] = "###################################################";
a[9] = "#oPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP #";
a[10] = "#################################################T#";
x = 4;
y = 1;
} else {
a[0] = "#############################";
a[1] = "#T T#";
a[2] = "# #";
a[3] = "# #";
a[4] = "# #";
a[5] = "# #";
a[6] = "# #";
a[7] = "I T#";
a[8] = "#############################";
x = 7;
y = 1;
for (int i = 0; i < 100; i++)
for (int j = 0; j < 100; j++) is[i][j] = true;
}
a[x][y] = '@';
while (1) {
is[x - 1][y - 1] = true;
is[x - 1][y] = true;
is[x - 1][y + 1] = true;
is[x][y - 1] = true;
is[x][y] = true;
is[x][y + 1] = true;
is[x + 1][y - 1] = true;
is[x + 1][y] = true;
is[x + 1][y + 1] = true;
system("cls");
cout << "生命:" << health << "/" << maxhealth << endl;
cout << "攻击:" << attack << endl;
cout << "防御:" << defense << endl;
for (int i = 0; i < 25; i++) {
for (int j = 0; j < 50; j++) {
if (is[i][j]) cout << a[i][j];
else cout << "0";
}
cout << endl;
}
int ch;
ch = _getch();
if (ch == 'a') {
if ('0' < a[x][y - 1] && a[x][y - 1] <= '9') {
cout << "你遇到了" << (int)(a[x][y - 1] - '0') << "级怪物,迎战吧!";
fight("怪物", 1000 * (a[x][y - 1] - '0'), 250 * (a[x][y - 1] - '0'), 10 * (a[x][y - 1] - '0'), 12, 50 * (a[x][y - 1] - '0'));
if (dead) {
Sleep(1000);
return 0;
}
a[x][y - 1] = '@';
a[x][y] = ' ';
y--;
a[x][y] = ' ';
} else if (a[x][y - 1] == 'I') {
cout << "你是否要退出?" << endl;
cout << "1确定 2取消" << endl;
int num;
cin >> num;
if (num == 1) {
break;
}
} else if (a[x][y - 1] == 'o') {
cout << "你通关了" << endl;
if (nowlevel + 1 == l) {
nowlevel++;
}
_getch();
return 0;
} else if (a[x][y - 1] == 'P') {
int m1 = rand() % 50;
int m2 = rand() % 2;
int m3 = rand() % 2;
int m4 = rand() % 2;
int m5 = rand() % 2;
int m6 = rand() % 2;
cout << "你获得了:" << endl;
cout << m1 << "元" << endl;
cout << m2 << "瓶生命药水" << endl;
cout << m3 << "瓶防御药水" << endl;
cout << m4 << "瓶攻击药水" << endl;
cout << m5 << "瓶经验药水" << endl;
cout << m6 << "瓶全幅药水" << endl;
money += m1;
bag[19] += m2;
bag[20] += m3;
bag[21] += m4;
bag[22] += m5;
bag[23] += m6;
_getch();
a[x][y - 1] = '@';
a[x][y] = ' ';
y--;
} else if (a[x][y - 1] == 'S') {
poisonshop();
} else if (a[x][y - 1] == 'B') {
bookshop();
} else if (a[x][y - 1] == 'T') {
NoticeBoard(l, x, y - 1);
} else if (a[x][y - 1] == '0' && l == 10) {
a[x][y] = '0';
x = 7;
y = 12;
a[x][y] = '@';
} else if (a[x][y - 1] == 'X' && l == 12) {
a[x][y] = ' ';
x = 9;
y = 49;
a[x][y] = '@';
} else if (a[x][y - 1] != '#') {
a[x][y - 1] = '@';
a[x][y] = ' ';
y -= 1;
}
if (l == 9 && x == 4 && y == 12) {
a[x][y - 2] = '@';
a[x][y] = ' ';
y -= 2;
}
}
if (ch == 'd') {
if ('0' < a[x][y + 1] && a[x][y + 1] <= '9') {
cout << "你遇到了" << (int)(a[x][y + 1] - '0') << "级怪物,迎战吧!";
fight("怪物", 1000 * (a[x][y + 1] - '0'), 250 * (a[x][y + 1] - '0'), 10 * (a[x][y + 1] - '0'), 12, 50 * (a[x][y + 1] - '0'));
if (dead) {
Sleep(1000);
return 0;
}
a[x][y + 1] = '@';
a[x][y] = ' ';
y++;
a[x][y] = ' ';
} else if (a[x][y + 1] == 'I') {
cout << "你是否要退出?" << endl;
cout << "1确定 2取消" << endl;
int num;
cin >> num;
if (num == 1) {
break;
}
} else if (a[x][y + 1] == 'o') {
cout << "你通关了" << endl;
if (nowlevel + 1 == l) {
nowlevel++;
}
_getch();
return 0;
} else if (a[x][y + 1] == 'P') {
int m1 = rand() % 50;
int m2 = rand() % 2;
int m3 = rand() % 2;
int m4 = rand() % 2;
int m5 = rand() % 2;
int m6 = rand() % 2;
cout << "你获得了:" << endl;
cout << m1 << "元" << endl;
cout << m2 << "瓶生命药水" << endl;
cout << m3 << "瓶防御药水" << endl;
cout << m4 << "瓶攻击药水" << endl;
cout << m5 << "瓶经验药水" << endl;
cout << m6 << "瓶全幅药水" << endl;
money += m1;
bag[19] += m2;
bag[20] += m3;
bag[21] += m4;
bag[22] += m5;
bag[23] += m6;
_getch();
a[x][y + 1] = '@';
a[x][y] = ' ';
y++;
} else if (a[x][y + 1] == 'S') {
poisonshop();
} else if (a[x][y + 1] == 'B') {
bookshop();
} else if (a[x][y + 1] == 'T') {
NoticeBoard(l, x, y + 1);
} else if (a[x][y + 1] == '0' && l == 10) {
a[x][y] = '0';
x = 7;
y = 12;
a[x][y] = '@';
} else if (a[x][y + 1] == 'X' && l == 12) {
a[x][y] = ' ';
x = 9;
y = 49;
a[x][y] = '@';
} else if (a[x][y + 1] != '#') {
a[x][y + 1] = '@';
a[x][y] = ' ';
y++;
}
if (l == 9 && x == 4 && y == 4) {
a[x][y + 2] = '@';
a[x][y] = ' ';
y += 2;
}
}
if (ch == 'w') {
if ('0' < a[x - 1][y] && a[x - 1][y] <= '9') {
cout << "你遇到了" << (int)(a[x - 1][y] - '0') << "级怪物,迎战吧!";
fight("怪物", 1000 * (a[x - 1][y] - '0'), 250 * (a[x - 1][y] - '0'), 10 * (a[x - 1][y] - '0'), 12, 50 * (a[x - 1][y] - '0'));
if (dead) {
Sleep(1000);
return 0;
}
a[x - 1][y] = '@';
a[x][y] = ' ';
x--;
a[x][y] = ' ';
} else if (a[x - 1][y] == 'I') {
cout << "你是否要退出?" << endl;
cout << "1确定 2取消" << endl;
int num;
cin >> num;
if (num == 1) {
break;
}
} else if (a[x - 1][y] == 'o') {
cout << "你通关了" << endl;
if (nowlevel + 1 == l) {
nowlevel++;
}
_getch();
return 0;
} else if (a[x - 1][y] == 'P') {
int m1 = rand() % 50;
int m2 = rand() % 2;
int m3 = rand() % 2;
int m4 = rand() % 2;
int m5 = rand() % 2;
int m6 = rand() % 2;
cout << "你获得了:" << endl;
cout << m1 << "元" << endl;
cout << m2 << "瓶生命药水" << endl;
cout << m3 << "瓶防御药水" << endl;
cout << m4 << "瓶攻击药水" << endl;
cout << m5 << "瓶经验药水" << endl;
cout << m6 << "瓶全幅药水" << endl;
money += m1;
bag[19] += m2;
bag[20] += m3;
bag[21] += m4;
bag[22] += m5;
bag[23] += m6;
_getch();
a[x - 1][y] = '@';
a[x][y] = ' ';
x--;
} else if (a[x - 1][y] == 'S') {
poisonshop();
} else if (a[x - 1][y] == 'B') {
bookshop();
} else if (a[x - 1][y] == 'T') {
NoticeBoard(l, x - 1, y);
} else if (a[x - 1][y] == '0' && l == 10) {
a[x][y] = '0';
x = 7;
y = 12;
a[x][y] = '@';
} else if (a[x - 1][y] == 'X' && l == 12) {
a[x][y] = ' ';
x = 9;
y = 49;
a[x][y] = '@';
} else if (a[x - 1][y] != '#') {
a[x - 1][y] = '@';
a[x][y] = ' ';
x -= 1;
}
}
if (ch == 's') {
if (a[x + 1][y] == ' ') {
a[x + 1][y] = '@';
a[x][y] = ' ';
x += 1;
} else if ('0' < a[x + 1][y] && a[x + 1][y] <= '9') {
cout << "你遇到了" << (int)(a[x + 1][y] - '0') << "级怪物,迎战吧!";
fight("怪物", 1000 * (a[x + 1][y] - '0'), 250 * (a[x + 1][y] - '0'), 10 * (a[x + 1][y] - '0'), 12, 50 * (a[x + 1][y] - '0'));
if (dead) {
Sleep(1000);
return 0;
}
a[x + 1][y] = '@';
a[x][y] = ' ';
x++;
a[x][y] = ' ';
} else if (a[x + 1][y] == 'I') {
cout << "你是否要退出?" << endl;
cout << "1确定 2取消" << endl;
int num;
cin >> num;
if (num == 1) {
break;
}
} else if (a[x + 1][y] == 'o') {
cout << "你通关了" << endl;
if (nowlevel + 1 == l) {
nowlevel++;
}
_getch();
return 0;
} else if (a[x + 1][y] == 'P') {
int m1 = rand() % 50;
int m2 = rand() % 2;
int m3 = rand() % 2;
int m4 = rand() % 2;
int m5 = rand() % 2;
int m6 = rand() % 2;
cout << "你获得了:" << endl;
cout << m1 << "元" << endl;
cout << m2 << "瓶生命药水" << endl;
cout << m3 << "瓶防御药水" << endl;
cout << m4 << "瓶攻击药水" << endl;
cout << m5 << "瓶经验药水" << endl;
cout << m6 << "瓶全幅药水" << endl;
money += m1;
bag[19] += m2;
bag[20] += m3;
bag[21] += m4;
bag[22] += m5;
bag[23] += m6;
_getch();
a[x + 1][y] = '@';
a[x][y] = ' ';
x++;
} else if (a[x + 1][y] == 'S') {
poisonshop();
} else if (a[x + 1][y] == 'B') {
bookshop();
} else if (a[x + 1][y] == 'T') {
NoticeBoard(l, x + 1, y);
} else if (a[x + 1][y] == '0' && l == 10) {
a[x][y] = '0';
x = 7;
y = 12;
a[x][y] = '@';
} else if (a[x + 1][y] == 'X' && l == 12) {
a[x][y] = ' ';
x = 9;
y = 49;
a[x][y] = '@';
} else if (a[x + 1][y] != '#') {
a[x + 1][y] = '@';
a[x][y] = ' ';
x++;
}
}
}
return 0;
}
int MM() {
if (amm == 0) {
int lie = 0;
cout << "....建议45级打,飘升80级...." << endl;
cout << "攻击即可获得:" << endl;
cout << "抽奖券*100 技能书昏昏倒地或技能书铁甲咒 全幅药水*50";
cout << " 金币*2000 经验石X*50" << endl;
cout << " 1攻击 2变强后再来" << endl;
int a;
cin >> a;
if (a == 1) {
cout << "你来到了魔法部大门" << endl;
Sleep(1000);
cout << "魔法部大门看守:你来这干嘛!" << endl;
Sleep(1000);
cout << "1**! 2办事的。" << endl;
cin >> a;
if (a == 1) cout << "魔法部大门看守:拦下他!" << endl;
else {
if (camp) cout << "魔法部大门看守:不可能,你是伏地魔的人!" << endl;
else {
cout << "魔法部大门看守仔细一看。" << endl;
Sleep(1000);
cout << "魔法部大门看守:他是哈利波特的人,抓了他问哈利波特下落!" << endl;
}
}
Sleep(1000);
fight("大门看守", 2000, 200, 20, 0, 1000);
if (dead) return 0;
fight("大门看守", 2000, 200, 20, 0, 1000);
if (dead) return 0;
cout << "增加100滴血" << endl;
health += 100;
Sleep(1000);
cout << "你踢开了大门" << endl;
Sleep(1000);
cout << "里面的几个雕像活了" << endl;
Sleep(1000);
fight("雕像", 10000, 200, 20, 0, 500);
if (dead) return 0;
fight("雕像", 10000, 200, 20, 0, 500);
if (dead) return 0;
fight("雕像", 10000, 200, 20, 0, 500);
if (dead) return 0;
cout << "增加500滴血" << endl;
health += 500;
cout << "你杀**了雕像后, 正准备往楼上走" << endl;
Sleep(1000);
cout << "突然一群员工跑了过来" << endl;
Sleep(1000);
cout << "员工:这是你**的吗" << endl;
Sleep(1000);
cout << "1,撒谎 其他,是!" << endl;
cin >> a;
if (a == 1) {
cout << "员工:是谁干的?" << endl;
Sleep(1000);
cout << "你随便指了一个员工" << endl;
Sleep(1000);
cout << "他!" << endl;
Sleep(1000);
cout << "那群员工匆匆跑了过去" << endl;
Sleep(1000);
cout << "你赶快跑上楼梯" << endl;
Sleep(1000);
lie = 1;
} else {
cout << "员工:干掉他!" << endl;
Sleep(1000);
fight("员工", 3000, 200, 100, 14, 1000);
if (dead) return 0;
fight("员工", 3000, 200, 100, 14, 1000);
if (dead) return 0;
fight("员工", 3000, 200, 100, 14, 1000);
if (dead) return 0;
fight("员工", 3000, 200, 100, 15, 1000);
if (dead) return 0;
fight("员工", 3000, 200, 100, 17, 1000);
if (dead) return 0;
if (rand() % 3 == 0) {
cout << "你获得了技能书铁甲咒" << endl;
bag[7]++;
Sleep(1000);
}
cout << "你赶快跑上楼梯" << endl;
health += 500;
}
Sleep(1000);
cout << "你遇到了副部长" << endl;
Sleep(1000);
fight("副部长", 10000, 1000, 100, 20, 3000);
health += 5000;
if (dead) return 0;
if (lie) {
cout << "上次的员工跑了过来" << endl;
Sleep(1000);
cout << "员工:你,你骗了我们!" << endl;
Sleep(1000);
fight("员工", 3000, 200, 100, 14, 1000);
if (dead) return 0;
fight("员工", 3000, 200, 100, 14, 1000);
if (dead) return 0;
fight("员工", 3000, 200, 100, 14, 1000);
if (dead) return 0;
fight("员工", 3000, 200, 100, 15, 1500);
if (dead) return 0;
fight("员工", 3000, 200, 100, 17, 2000);
if (dead) return 0;
if (rand() % 3 == 0) {
cout << "你获得了技能书铁甲咒" << endl;
bag[7]++;
Sleep(1000);
}
health += 500;
}
cout << "你遇到了部长";
fight("部长", 15000, 1500, 150, 20, 4000);
if (dead) return 0;
cout << "你获得:" << endl;
cout << "抽奖券*100 技能书昏昏倒地或技能书铁甲咒 全幅药水*50";
cout << " 金币*2000 经验石X*50" << endl;
bag[0] += 100;
bag[8]++;
bag[23] += 50;
money += 2000;
bag[5] += 50;
amm = 1;
Sleep(3000);
} else if (a == 2) return 0;
else {
cout << "请勿乱输";
Sleep(1000);
}
} else {
cout << "你已占领魔法部 可以进入以下地方" << endl;
cout << "0,退出 1,泡温泉 2,矿洞" << endl;
int b;
cin >> b;
switch (b) {
case 0:
break;
case 1:
time_t c_start, t_start, c_end, t_end;
c_start = clock();
t_start = time(NULL);
cout << "正在泡温泉 按下任意键停止" << endl;
_getch();
c_end = clock();
t_end = time(NULL);
cout << "你获得" << (int)difftime(c_end, c_start) / 100 << "元" << endl;
cout << "你获得" << (int)difftime(c_end, c_start) / 10 << "经验" << endl;
experience += (int)difftime(c_end, c_start) / 10;
money += (int)difftime(c_end, c_start) / 100;
_getch();
break;
case 2:
cout << "你走进矿洞" << endl;
Sleep(1000);
ict++;
if (ict == 5) cout << "你不小心**在墙上,触发了机关" << endl;
else if (ict > 5) cout << "你找到原来触发机关的地方,按下那块岩石,密道又出现了" << endl;
cout << "0,退出 1,挖矿";
if (ict > 4) cout << " 2,暗道";
cout << endl;
int c;
cin >> c;
if (c == 1) dig();
else if (c == 2 && ict > 4) {
cout << "你走进暗道" << endl;
_getch();
cout << "你发现了一个完全不同的世界,里面充满了怪物" << endl;
_getch();
cout << "每去一个地方都有可能遇到他们" << endl;
_getch();
cout << "但你有一种直觉,穿过这个森林,就能找到某些东西" << endl;
_getch();
MessageBox(0, TEXT("建议 生命>60000 攻击>20000 防御>2000 速度>1000 时来打"), TEXT("重要提示"), MB_OK);
if (MessageBox(0, TEXT("用 wasd 移动,o出口,I入口,@你"), TEXT("重要提示"), MB_OKCANCEL | MB_ICONINFORMATION) != IDOK) {
MessageBox(0, TEXT("下次再来吧!"), TEXT("重要提示"), MB_OK);
return 0;
};
cout << "开始吧!" << endl;
maze();
} else cout << "请勿乱输" << endl;
Sleep(1000);
break;
}
}
return 0;
}
int finalfight(string Hname) {
int hisH = 1000000000, hisA = 1000000, hisD = 500000, hisSP = 5000;
int hfaint = 0, hhurt = 0, hbeat = 0;
int mfaint = 0, mhurt = 0;
dead = false;
int ha = hisA;
int his = hisA + hisD + hisH;
while (1) {
if (hfaint > 0) {
if (rand() % 3 == 0) {
cout << "对方使用技能:咒立停!停止了魔咒" << endl;
hfaint = 1;
}
hfaint -= 1;
}
if (hbeat == 1) {
if (rand() % 10 == 0) {
cout << "对方一躲,躲过了你的石头" << endl;
hbeat = 0;
} else {
cout << "对方躲闪不急,石头正好撞在他的鼻子上 扣血50滴" << endl;
hisH -= 50;
}
}
if (mfaint > 0) {
if (Sl[6]) mfaint = 0;
else mfaint -= 1;
}
if (mhurt > 0) {
if (Sl[6]) mhurt = 0;
else {
mhurt -= 1;
cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;
health -= 200;
}
}
if (mfaint <= 0) {
if (rand() % 3 && Sl[0]) {
cout << "你使用技能快快复苏 生命增加200" << endl;
health += 200;
}
if (rand() % 3 && Sl[1]) {
cout << "你使用技能铁甲护身 生命增加100 防御增加50" << endl;
health += 100;
defense += 50;
}
if (rand() % 3 && Sl[2]) {
cout << "你使用技能昏昏倒地 " << Hname << "一回合之内不能攻击" << endl;
hfaint += 1;
}
if (rand() % 3 && Sl[3]) {
cout << "你使用技能神锋无影 攻击增加200 对方扣血200滴" << endl;
hisH -= 200;
attack += 200;
}
if (rand() % 3 && Sl[5]) {
if (rand() % 10) {
cout << "你使用技能统统石化 " << Hname << "二回合之内不能攻击" << endl;
hfaint += 2;
} else {
cout << "你使用技能统统石化 " << Hname << "十回合之内不能攻击" << endl;
hfaint += 10;
}
}
if (rand() % 4 == 0 && Sl[7]) {
cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;
hisH = monsterfight(Hname, hisH, hisA, hisD, 23, hisSP);
if (hisH < 1) {
cout << "对方**亡" << endl;
Sleep(1000);
cout << "全部人都来庆祝你" << endl;
Sleep(1000);
cout << "突然," << Hname << "的魔杖一转,指向了你。" << endl;
Sleep(1000);
cout << "里面发出一束红色的光柱" << endl;
Sleep(1000);
cout << "你连忙拿魔杖一挡" << endl;
Sleep(1000);
cout << "那光柱击中你的魔杖,**了" << endl;
Sleep(1000);
cout << "你的魔杖断了" << endl;
Sleep(1000);
cout << "你被炸出20多米" << endl;
Sleep(1000);
cout << "未完待续..." << endl;
Sleep(10000);
return 0;
}
if (Sl[0]) {
cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;
if (maxhealth < health + 2000) health = maxhealth;
else health += 2000;
}
}
if (rand() % 4 == 0 && Sl[8]) {
cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;
}
if (rand() % 3 && Sl[9]) {
cout << "你使用技能万弹齐发!变出几十块石头" << endl;
hbeat = 1;
}
if (rand() % 3 && Sl[10]) {
cout << "你使用技能钻心咒!对方将疼痛5回合" << endl;
hhurt += 5;
}
if (rand() % 3 && Sl[11]) {
cout << "魂魄出窍!你使用夺魂咒,企图让" << Hname << "自己攻击自己!" << endl;
Sleep((rand() % 2000) + 1000);
cout << Hname << "被你控制了,开始攻击自己" << endl;
Sleep(700);
int ran = rand() % 40 - 20;
if (hisA + ran > hisD) {
cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;
hisH -= hisA - hisD + ran;
} else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;
}
if (rand() % 2 && Sl[12]) {
cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;
hisH /= 4;
}
Sleep(1000);
int ran = rand() % 40 - 20;
if (rand() % 10000 > hisSP) {
if (attack + ran > hisD) {
cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;
hisH -= attack - hisD + ran;
} else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
} else {
if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;
else {
cout << "你一脚踹了过去,但只擦着了腰" << endl;
if ((attack / 3) + ran > hisD) {
cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;
hisH -= (attack / 3) + ran - hisD;
} else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;
}
}
}
Sleep(700);
if (hhurt > 0) {
hhurt -= 1;
cout << "对方因中了你的钻心咒,正捂着心大叫呢 扣血200滴" << endl;
hisH -= 200;
}
if (hisH <= 0) {
if (rand() % 3 == 0) {
cout << "对方发动技能:恢复如初 满血复活" << endl;
hisH = ha;
Sleep(1000);
} else {
cout << "对方**亡" << endl;
Sleep(1000);
cout << "全部人都来庆祝你" << endl;
Sleep(1000);
cout << "突然," << Hname << "的魔杖一转,指向了你。" << endl;
Sleep(1000);
cout << "里面发出一束红色的光柱" << endl;
Sleep(1000);
cout << "你连忙拿魔杖一挡" << endl;
Sleep(1000);
cout << "那光柱击中你的魔杖,**了" << endl;
Sleep(1000);
cout << "你的魔杖断了" << endl;
Sleep(1000);
cout << "你被炸出20多米" << endl;
Sleep(1000);
cout << "未完待续..." << endl;
Sleep(10000);
return 0;
}
}
if (rand() % 3 == 0) {
cout << "对方发动技能:快快复苏 生命加200" << endl;
hisH += 200;
}
if (rand() % 3 == 0) {
cout << "对方发动技能:盔甲护身 生命加50 防御增加50" << endl;
hisH += 50;
hisD += 50;
}
if (rand() % 3 == 0) {
cout << "对方使用技能神锋无影 攻击增加200 扣血200滴" << endl;
health -= 200;
hisA += 200;
}
if (rand() % 3 == 0) {
cout << "对方使用技能昏昏倒地 " << name << "一回合之内不能攻击" << endl;
mfaint += 1;
}
if (rand() % 3 == 0) {
if (rand() % 10) {
cout << "对方使用技能统统石化 " << name << "二回合之内不能攻击" << endl;
mfaint += 2;
} else {
cout << "对方使用技能统统石化 " << name << "十回合之内不能攻击" << endl;
mfaint += 10;
}
}
if (rand() % 3 == 0) {
cout << "对方使用技能阿瓦达索命 " << name << "扣血" << health - health / 4 << "滴" << endl;
health /= 4;
}
Sleep(1000);
if (hfaint <= 0) {
int ran = rand() % 40 - 20;
if (rand() % 10000 > speed) {
if (hisA + ran > defense) {
cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;
health -= hisA - defense + ran;
} else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;
} else {
if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;
else {
if ((hisA / 3) + ran > hisD) {
cout << Hname << "发起进攻 你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;
health -= ((hisA / 3) + ran - defense);
} else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;
}
}
Sleep(1000);
if (health <= 0) {
if (Sl[6] && rand() % 2) {
cout << "你发动技能:恢复如初 满血复活" << endl;
health = maxhealth;
Sleep(1000);
} else {
cout << "你**亡";
health = 20;
dead = true;
return 0;
}
}
}
}
return 0;
}
int main() {
int isbreak;
isbreak = false;
if (MessageBox(0, TEXT("除输入名字外,请不要输入任何字符,否则将导致游戏崩溃!"), TEXT("重要提示"), MB_OKCANCEL | MB_ICONINFORMATION) != IDOK) {
MessageBox(0, TEXT("既然你不同意,那就别玩了"), TEXT("重要提示"), MB_OK);
return 0;
};
srand((unsigned)time(NULL));
cout << " 1.2.9 \n";
cout << " MagicWorld--HarryPotter \n";
cout << " \n";
cout << " / > \n";
cout << " / > / \n";
cout << " < _____ > / \n";
cout << " |-O--O-| / \n";
cout << " / == - . / \n";
cout << " / . [ ] \n";
cout << " / /` ___/ \n";
cout << " \n";
cout << " by evan\n";
cout << "输入‘start’开始游戏 \n";
string start;
cin >> start;
for (int i = 8; i < 100; i++) wandname[i] = "1";
if (start == "start") {
int i;
system("cls");
for (i = 0; i < 20; i++) {
cout << "loading..." << endl << "--------------------------" << endl << " ";
for (int j = 0; j <= i % 5; j++) cout << "+==+";
cout << " " << endl << "--------------------------" << endl;
switch (rand() % 4) {
case 0:
cout << "打怪是升级和提升战力的好方法。" << endl;
break;
case 1:
cout << "开始游戏时记得选择阵营。" << endl;
break;
case 2:
cout << "退出时要保存。" << endl;
break;
case 3:
cout << "新手开始游戏时会有3瓶经验药水1张抽奖券。" << endl;
break;
}
Sleep(250);
system("cls");
}
while (1) {
isbreak = false;
cout << "1,登录 2,注册";
int a;
cin >> a;
if (a == 1) login();
else Reg();
while (1) {
if (isbreak) {
break;
}
system("cls");
cout << "魔法人士:" << name << endl;
cout << "势力:";
if (camp) cout << "伏地魔" << endl;
else cout << "哈利波特" << endl;
cout << "生命:" << health << "/" << maxhealth << endl;
cout << "攻击:" << attack << endl;
cout << "防御:" << defense << endl;
cout << "速度:" << speed << endl;
cout << "等级:" << level << endl;
cout << "经验:" << experience << "/" << level * 100 << endl;
cout << "金币:" << money << endl;
cout << "1,魔法部(攻击即可占领) 2,大街(**/阻止食**徒) 3,";
if (camp) cout << "霍格沃茨(哈利波特不在) ";
else cout << "伏地魔总部(伏地魔不在) ";
cout << "4,霍格沃茨(最后**) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";
if (camp) cout << "15, 医疗兵(伏地魔的)";
else cout << "15, 庞弗雷女士 ";
cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;
cin >> a;
switch (a) {
case 1:
MM();
break;
case 2:
street();
break;
case 3:
for (int i = 1; i < 100; i++) {
cout << "|";
for (int j = 0; j < 10 && i < 100; j++, i++) {
if (nowlevel + 1 < i) cout << " " << i << " |";
else cout << ":" << i << ":|";
}
cout << endl;
}
int num;
cin >> num;
if (nowlevel + 1 < num) cout << "你未解锁这关" << endl;
else checkpoint(num);
Sleep(1000);
break;
case 4:
if (camp) {
if (f) finalfight("哈利·波特");
else cout << "你需要先寻找哈利波特的下落" << endl;
} else {
if (f) finalfight("伏地魔");
else cout << "你需要先寻找伏地魔的下落" << endl;
}
Sleep(1000);
break;
case 5:
cout << "1 柳条独角兽尾毛魔杖 100元" << endl;
cout << "2 胡桃木龙神经魔杖 200元" << endl;
cout << "3 鹅耳枥木魔杖 550元" << endl;
cout << "4 柳条魔杖 1200元" << endl;
cout << "5 花心木魔杖 3650元" << endl;
cout << "6 冬青木凤凰羽毛魔杖 5780元" << endl;
cout << "7 紫杉木凤凰羽毛魔杖 7120元" << endl;
cout << "8 老魔杖 50000元" << endl;
cout << "0 退出 0元" << endl;
int b;
cin >> b;
switch (b) {
case 1:
buywand(6, 100);
system("cls");
break;
case 2:
buywand(7, 200);
system("cls");
break;
case 3:
buywand(8, 550);
system("cls");
break;
case 4:
buywand(9, 1200);
system("cls");
break;
case 5:
buywand(10, 3650);
system("cls");
break;
case 6:
buywand(11, 5780);
system("cls");
break;
case 7:
buywand(12, 7120);
system("cls");
break;
case 8:
buywand(13, 50000);
system("cls");
break;
default:
break;
}
break;
case 6:
LD();
break;
case 7:
cout << "1 经验石R 100元 100经验" << endl;
cout << "2 经验石SR 200元 250经验" << endl;
cout << "3 经验石SSR 400元 500经验" << endl;
cout << "4 经验石SSS 1000元 1200经验" << endl;
cout << "5 经验石X 2000元 2500经验" << endl;
cout << "0 退出 0元 0经验" << endl;
int c;
cin >> c;
switch (c) {
case 1:
buy(1, 100);
system("cls");
break;
case 2:
buy(2, 200);
system("cls");
break;
case 3:
buy(3, 550);
system("cls");
break;
case 4:
buy(4, 1200);
system("cls");
break;
case 5:
buy(5, 3650);
system("cls");
break;
default:
break;
}
break;
case 8:
cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;
cin >> b;
if (b == 1) w();
else if (b == 2) p();
else if (b == 3) e();
else if (b == 4) s();
else {
cout << "请勿乱输" << endl;
Sleep(1000);
}
break;
case 9:
int material1, material2, mn1, mn2;
cout << "1,制作 2,查看材料";
cin >> material1;
if (material1 == 1) {
cout << "你要用什么杖芯?" << endl;
for (int ij = 0; ij < 9; ij++) cout << ij + 1 << "," << Material1name[ij] << " " << bag[ij + 24] << "个" << endl;
cin >> material1;
cout << "几个?" << endl;
cin >> mn1;
cout << "你要用什么木材?" << endl;
for (int ij = 0; ij < 10; ij++) cout << ij + 1 << "," << Material2name[ij] << " " << bag[ij + 33] << "个" << endl;
cin >> material2;
cout << "几个?" << endl;
cin >> mn2;
make(material1 + 23, material2 + 32, mn1, mn2);
break;
} else if (material1 == 2) {
cout << "杖芯:" << endl;
for (int ij = 0; ij < 9; ij++) cout << ij + 1 << "," << Material1name[ij] << " " << bag[ij + 24] << "个" << endl;
cout << "木材:" << endl;
for (int ij = 0; ij < 10; ij++) cout << ij + 1 << "," << Material2name[ij] << " " << bag[ij + 33] << "个" << endl;
_getch();
} else cout << "请勿乱输";
break;
case 10:
break;
case 11:
if (xy == 1) {
if (ane == 0) cout << "再闯 1 关副本";
else if (ane == 1) cout << "买两件商品";
else if (ane == 2) cout << "回血一次";
else if (ane == 3) cout << "杀**10个人";
cout << "(" << D_Of_C << "/" << OK << ")" << endl;
if (D_Of_C >= OK) {
cout << "任务完成!!";
maxhealth += 200;
health += 200;
defense += 20;
xy = 0;
bag[43]++;
}
Sleep(1000);
} else {
ane = rand() % 4;
D_Of_C = 0;
xy = 1;
if (ane == 0) {
cout << "再闯 1 关副本";
OK = 1;
} else if (ane == 1) {
cout << "买两件商品";
OK = 2;
} else if (ane == 2) {
cout << "回血一次";
OK = 1;
} else if (ane == 3) {
cout << "杀**10个人";
OK = 10;
}
Sleep(1000);
}
break;
case 12:
if (xy1 == 1) {
if (ane1 == 0) {
if (camp) cout << "杀**1个邓布利多";
else cout << "杀**1个纳尼吉";
} else if (ane1 == 1) cout << "消耗5000元";
else if (ane1 == 2) {
if (camp) cout << "杀**5个穆迪";
else cout << "杀**5个卢修斯·马尔福";
} else if (ane1 == 3) cout << "杀**100个生物";
else if (ane1 == 4) cout << "再升10级";
cout << "(" << D_Of_C1 << "/" << OK1 << ")" << endl;
if (D_Of_C1 >= OK1) {
cout << "任务完成!!" << endl;
xy1 = 0;
cout << "增加500元 攻击力+10 防御力+10 生命+500" << endl;
money += 500;
attack += 200;
health += 1000;
maxhealth += 1000;
defense += 150;
bag[43] += 5;
}
Sleep(1000);
} else {
ane1 = rand() % 5;
D_Of_C1 = 0;
xy1 = 1;
if (ane1 == 0) {
if (camp) cout << "杀**1个邓布利多";
else cout << "杀**1个纳尼吉";
OK1 = 1;
} else if (ane1 == 1) {
cout << "消耗5000元";
OK1 = 5000;
} else if (ane1 == 2) {
if (camp) cout << "杀**5个穆迪";
else cout << "杀**5个卢修斯·马尔福";
OK1 = 5;
} else if (ane1 == 3) {
cout << "杀**100个生物";
OK1 = 100;
} else if (ane1 == 4) {
cout << "再升10级";
OK1 = 10;
}
Sleep(1000);
}
break;
case 13:
cout << "1 金钱副本" << LE1 << "级 2 经验副本" << LE2 << "级" << endl;
int y;
cin >> y;
if (y == 1) {
for (int i = 0; i < LE1 % 5; i++) {
if (rand() % 3 == 0) fight2("木人桩", 1500, 100, 10, 0, 1000);
else if (rand() % 3 == 1) fight2("沙包", 3000, 50, 20, 0, 1000);
else fight2("木板", 1000, 100, 10, 0, 1000);
if (dead) break;
}
for (int i = 0; i < (LE1 / 5) % 25; i++) {
if (dead) break;
if (rand() % 3 == 0) fight2("石人桩(这有吗)", 3000, 200, 20, 0, 2000);
else if (rand() % 3 == 1) fight2("石包(这有吗)", 6000, 100, 60, 0, 2000);
else fight2("石板", 3000, 300, 30, 0, 2000);
}
for (int i = 0; i < (LE1 / 25) % 125; i++) {
if (dead) break;
if (rand() % 3 == 0) fight2("铁人桩(这有吗)", 6000, 400, 40, 0, 4000);
else if (rand() % 3 == 1) fight2("铁包(这有吗)", 12000, 200, 120, 0, 4000);
else fight2("铁板", 6000, 400, 40, 0, 4000);
}
for (int i = 0; i < (LE1 / 125) % 625; i++) {
if (dead) break;
if (rand() % 3 == 0) fight2("金人桩(这有吗)", 12000, 800, 80, 0, 6500);
else if (rand() % 3 == 1) fight2("金包(这有吗)", 24000, 400, 240, 0, 6500);
else fight2("金板", 12000, 800, 80, 0, 6500);
}
if (!dead) {
LE1++;
if (ane == 0) D_Of_C++;
}
}
if (y == 2) {
for (int i = 0; i < LE2 % 5; i++) {
if (rand() % 3 == 0) fight1("木人桩", 1500, 100, 10, 0, 1000);
else if (rand() % 3 == 1) fight1("沙包", 3000, 50, 20, 0, 1000);
else fight1("木板", 1000, 100, 10, 0, 1000);
if (dead) break;
}
for (int i = 0; i < (LE2 / 5) % 25; i++) {
if (dead) break;
if (rand() % 3 == 0) fight1("石人桩(这有吗)", 3000, 200, 20, 0, 1000);
else if (rand() % 3 == 1) fight1("石包(这有吗)", 6000, 100, 60, 0, 1000);
else fight1("石板", 3000, 300, 30, 0, 1000);
}
for (int i = 0; i < (LE2 / 25) % 125; i++) {
if (dead) break;
if (rand() % 3 == 0) fight1("铁人桩(这有吗)", 6000, 400, 40, 0, 4000);
else if (rand() % 3 == 1) fight1("铁包(这有吗)", 12000, 200, 120, 0, 4000);
else fight1("铁板", 6000, 400, 40, 0, 4000);
}
for (int i = 0; i < (LE2 / 125) % 625; i++) {
if (dead) break;
if (rand() % 3 == 0) fight1("金人桩(这有吗)", 12000, 800, 80, 0, 6500);
else if (rand() % 3 == 1) fight1("金包(这有吗)", 24000, 400, 240, 0, 6500);
else fight1("金板", 12000, 800, 80, 0, 6500);
}
if (!dead) {
LE2++;
if (ane == 0) D_Of_C++;
}
}
break;
case 14:
save();
cout << "保存成功!";
Sleep(1000);
break;
case 15:
Hos();
Sleep(1000);
break;
case 16:
int pw;
cout << "密码:";
cin >> pw;
if (pw == 1212) {
cout << "0~42,改变背包 43,金币 44,等级 45,经验 46,生命 47,防御 48,攻击 49,最大生命 50,进入魔法部权力(0没有 0<有) 51,速度" << endl;
int num1, num2;
cout << "几号:";
cin >> num1;
cout << "改变成:";
cin >> num2;
if (num1 <= 42) bag[num1] = num2;
else {
switch (num1) {
case 43:
money = num2;
break;
case 44:
level = num2;
break;
case 45:
experience = num2;
break;
case 46:
health = num2;
break;
case 47:
defense = num2;
break;
case 48:
attack = num2;
break;
case 49:
maxhealth = num2;
break;
case 50:
amm = num2;
break;
case 51:
speed = num2;
break;
default:
break;
}
}
levelup();
cout << "改变成功";
} else cout << "密码错误" << endl;
Sleep(1000);
break;
case 17:
cout << "1,关卡攻略 2,关卡功能" << endl;
int xd;
cin >> xd;
if (xd == 1) system("start https://paste.ubuntu.com/p/2YQBCmYvSb/");
if (xd == 2) {
cout << "我们先介绍一下图标" << endl;
cout << "╔═══╗ ╔═══╗ ╔═══╗ ╔═══╗" << endl;
cout << "║ @ ║ ║ I ║ ║ o ║ ║ # ║" << endl;
cout << "╚═══╝ ╚═══╝ ╚═══╝ ╚═══╝" << endl;
cout << "你自己 出口 入口 墙" << endl;
cout << "╔═══╗ ╔═══╗ ╔═══╗ ╔═══╗" << endl;
cout << "║ 1 ║ ║ 2 ║ ║ 3 ║ ║ 4 ║" << endl;
cout << "╚═══╝ ╚═══╝ ╚═══╝ ╚═══╝" << endl;
cout << "1级怪 2级怪 3级怪 4级怪" << endl;
cout << "命1000 命2000 命3000 命4000" << endl;
cout << "攻250 攻500 攻750 攻1000" << endl;
cout << "防10 防20 防30 防40" << endl;
cout << "速50 速100 速150 速200" << endl;
cout << "╔═══╗ ╔═══╗ ╔═══╗ ╔═══╗" << endl;
cout << "║ 5 ║ ║ 6 ║ ║ 7 ║ ║ 8 ║" << endl;
cout << "╚═══╝ ╚═══╝ ╚═══╝ ╚═══╝" << endl;
cout << "5级怪 6级怪 7级怪 8级怪" << endl;
cout << "命5000 命6000 命7000 命8000" << endl;
cout << "攻1250 攻1500 攻1750 攻2000" << endl;
cout << "防50 防60 防70 防80" << endl;
cout << "速250 速300 速350 速400" << endl;
cout << "╔═══╗ ╔═══╗ ╔═══╗ ╔═══╗" << endl;
cout << "║ 9 ║ ║ S ║ ║ B ║ ║ T ║" << endl;
cout << "╚═══╝ ╚═══╝ ╚═══╝ ╚═══╝" << endl;
cout << "9级怪 药水商店 书店 告示牌" << endl;
cout << "命9000" << endl;
cout << "攻2250" << endl;
cout << "防90" << endl;
cout << "速450" << endl;
cout << "╔═══╗" << endl;
cout << "║ X ║" << endl;
cout << "╚═══╝" << endl;
cout << "传送机" << endl;
cout << "输入图标了解详细,0退出" << endl;
string st;
cin >> st;
if (st == "@") system("start https://paste.ubuntu.com/p/cdJPnhXddT/");
else if (st == "I" || st == "i") system("start https://paste.ubuntu.com/p/h5npMzvDBX/");
else if (st == "o" || st == "O") system("start https://paste.ubuntu.com/p/By6Fdyq9wq/");
else if (st == "#") system("start https://paste.ubuntu.com/p/DswXYhVGFn/");
else if (st <= "9" && st >= "1") system("start https://paste.ubuntu.com/p/4vZDjY7fX4/");
else if (st == "S" || st == "s") system("start https://paste.ubuntu.com/p/SvSTDGrcD3/");
else if (st == "B" || st == "b") system("start https://paste.ubuntu.com/p/MMqwYn63N9/");
else if (st == "T" || st == "t") system("start https://paste.ubuntu.com/p/mXgfbyhGGJ/");
else if (st == "X" || st == "x") system("start https://paste.ubuntu.com/p/M6svDYryGt/");
else if (st == "0");
else cout << "请勿乱输" << endl;
Sleep(1000);
}
break;
case 18:
isbreak = true;
}
levelup();
}
}
}
}
中级光能
直接给你2000行
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
#include<tchar.h>
#include <cstdio>
#include<string>
#define rep(i,l,r) for(int i=l;i<=r;i++)
#define lep(i,l,r) for(int i=l;i>=r;i--)
#define qdo 262
#define qre 294
#define qmi 330 //q前缀为低音,1后缀为高音,s前缀为半音阶
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;
HANDLE hOutput=GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_FONT_INFO consoleCurrentFont;
const int isshow=-1;
int mp[100][100],num,canshow[100][100],now;
int mp_vis[100][100];
int isbj[100][100];
bool tsbj[100][100];
inline void gotoxy(int x,int y)
{
HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE);
COORD pos;
pos.X=x;
pos.Y=y;
SetConsoleCursorPosition(handle,pos);
return;
}
void color(int a) //颜色函数
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
}
void print_num(int n)
{
color(56);
if(n==1)cout<<"①";
if(n==2)cout<<"②";
if(n==3)cout<<"③";
if(n==4)cout<<"④";
if(n==5)cout<<"⑤";
if(n==6)cout<<"⑥";
if(n==7)cout<<"⑦";
if(n==8)cout<<"⑧";
color(7);
}
void print_map()
{
cout<<"by lize yyd 2021.9.3 8:56~9:53\n";
cout << "--------------------扫雷--------------------" << endl;
cout << "鼠标点击 左键翻开 右键标记" << endl;
cout << "--------------------------------------------" << endl;
cout<<" ";
rep(i,1,9)cout<<i<<' ';
cout<<endl;
rep(i,1,9)
{
cout<<" ";
cout<<i<<' ';
rep(j,1,9)
{
// cout<<mp[i][j]<<' ';
if(tsbj[i][j])
{
color(56);
cout<<"■";
}
else if(isbj[i][j])
{
color(25);
if(isbj[i][j]==1)
{
cout<<"!";
}
else
{
cout<<"?";
}
}
else
{
if(mp[i][j]==9)
{
color(25);
cout<<"■";
}
else
{
if(mp[i][j]==isshow)
{
color(56);
cout<<"■";
}
else
{
if(canshow[i][j])
{
print_num(mp[i][j]);
}
else
{
color(25);
cout<<"■";
}
}
}
}
color(7);
}
cout<<endl;
}
cout<<" 剩余雷数:"<<num-now<<endl;
}
void print_gameover(int x,int y) //游戏结束
{
system ("cls");
cout<<"by lize yyd 2021.9.3 8:56~9:53\n";
cout << "--------------------扫雷--------------------" << endl;
cout << "鼠标点击 左键翻开 右键标记" << endl;
cout << "--------------------------------------------" << endl;
cout<<" ";
rep(i,1,9)cout<<i<<' ';
cout<<endl;
rep(i,1,9)
{
cout<<" ";
cout<<i<<' ';
rep(j,1,9)
{
// cout<<mp[i][j]<<' ';
if(i==x&&j==y)color(64),cout<<"﹡";
else if(mp[i][j]==9)
{
color(12);
if(isbj[i][j])
{
cout<<"×";
}
else cout<<"﹡";
}
else
{
if(isbj[i][j])
{
color(25);
if(isbj[i][j]==1)
{
cout<<"!";
}
else
{
cout<<"?";
}
}
else
{
if(mp[i][j]==isshow)
{
color(56);
cout<<"■";
}
else
{
if(canshow[i][j])
{
print_num(mp[i][j]);
}
else
{
color(25);
cout<<"■";
}
}
}
}
color(7);
}
cout<<endl;
}
Sleep(1000);
system("cls");
color(4);
printf(
" _____ __ __ ______ ______ ________ _____ \n"
" / ____| /\\ | \\/ | ____| / __ \\ \\ / / ____| __ \\\n"
" | | __ / \\ | \\ / | |__ | | | \\ \\ / /| |__ | |__) |\n"
" | | |_ | / /\\ \\ | |\\/| | __| | | | |\\ \\/ / | __| | _ / \n"
" | |__| |/ ____ \\| | | | |____ | |__| | \\ / | |____| | \\ \\ \n"
" \\_____/_/ \\_\\_| |_|______| \\____/ \\/ |______|_| \\_\\\n"
);
color(7);
exit(0);
}
void print_win() //你赢了
{
system ("cls");
color(10);
printf(
" __ ______ _ _ __ _______ _ _\n"
" \\ \\ / / __ \\| | | | \\ \\ / /_ _| \\ | |\n"
" \\ \\_/ / | | | | | | \\ \\ /\\ / / | | | \\| |\n"
" \\ /| | | | | | | \\ \\/ \\/ / | | | . ` |\n"
" | | | |__| | |__| | \\ /\\ / _| |_| |\\ |\n"
" |_| \\____/ \\____/ \\/ \\/ |_____|_| \\_|\n"
);
color(7);
exit(0);
}
const int fx[9]= {0,0,0,1,-1,-1,-1,1,1},fy[9]= {0,1,-1,0,0,1,-1,1,-1};
void dfs(int x0,int y0)
{
if(isbj[x0][y0])return;
if(x0>9||y0>9||x0<1||y0<1)return;
if(mp[x0][y0]==9)return;
canshow[x0][y0]=1;
if(mp[x0][y0]!=0)return;
mp[x0][y0]=isshow;
rep(i,1,8)
{
dfs(x0+fx[i],y0+fy[i]);
}
}
bool check()
{
int sum=0;
rep(i,1,9)
{
rep(j,1,9)
{
if(canshow[i][j])
{
sum++;
}
}
}
return sum==9*9-num;
}
int mouseclick()
{
while(1)
{
}
}
void saolei()
{
HWND h=GetForegroundWindow();
HANDLE hStdin=GetStdHandle(STD_INPUT_HANDLE);
DWORD mode;
GetConsoleMode(hStdin,&mode);
mode&=~ENABLE_QUICK_EDIT_MODE;
SetConsoleMode(hStdin,mode);
num=8;//默认8颗雷,可自己更改
srand(time(NULL));
rep(i,1,num)
{
int x=rand()%9+1,y=rand()%9+1;
while(mp_vis[x][y]==1)
{
x=rand()%9+1,y=rand()%9+1;
}
mp_vis[x][y]=1;
}
rep(i,1,9)
{
rep(j,1,9)
{
rep(k,-1,1)
{
rep(l,-1,1)
{
mp[i][j]+=mp_vis[i+k][j+l];
}
}
if(mp_vis[i][j])mp[i][j]=9;
}
}
while(1)
{
memset(tsbj,0,sizeof(tsbj));
gotoxy(0,0);
print_map();
cout<<endl<<endl;
cout<<endl;
int y,x,opt=0;
while(1)
{
if(KEY_DOWN(VK_LBUTTON)||KEY_DOWN(VK_RBUTTON))break;
}
if(KEY_DOWN(VK_LBUTTON))
{
POINT p;
GetCursorPos(&p);
ScreenToClient(h,&p);
GetCurrentConsoleFont(hOutput,FALSE,&consoleCurrentFont);
x=p.x/=consoleCurrentFont.dwFontSize.X;
y=p.y/=consoleCurrentFont.dwFontSize.Y;
x/=2;
y-=4;
Sleep(100);
int tmp=x;
x=y;
y=tmp-5;
opt=1;
}
else if(KEY_DOWN(VK_RBUTTON))
{
POINT p;
GetCursorPos(&p);
ScreenToClient(h,&p);
GetCurrentConsoleFont(hOutput,FALSE,&consoleCurrentFont);
x=p.x/=consoleCurrentFont.dwFontSize.X;
y=p.y/=consoleCurrentFont.dwFontSize.Y;
x/=2;
y-=4;
Sleep(100);
int tmp=x;
x=y;
y=tmp-5;
opt=2;
}
if(opt==1)
{
if(canshow[x][y]==1&&mp[x][y]!=9&&mp[x][y]!=0)
{
int cntt=0;
rep(k,-1,1)
{
rep(l,-1,1)
{
if(x+k==0||x+k==10||y+l==0||y+l==10)continue;
if(k==0&&l==0)continue;
if(isbj[x+k][y+l]==1)cntt++;
else if(!canshow[x+k][y+l])tsbj[x+k][y+l]=true;
}
}
if(cntt==mp[x][y])
{
rep(k,-1,1)
{
rep(l,-1,1)
{
if(k==0&&l==0)continue;
if(x+k==0||x+k==10||y+l==0||y+l==10)continue;
if(mp_vis[x+k][y+l]&&!isbj[x+k][y+l])
{
print_gameover(x+k,y+l);
}
}
}
rep(k,-1,1)
{
rep(l,-1,1)
{
if(k==0&&l==0)continue;
if(x+k==0||x+k==10||y+l==0||y+l==10)continue;
dfs(x+k,y+l);
}
}
}
else
{
gotoxy(0,0);
print_map();
}
}
else
{
if(canshow[x][y])continue;
if(mp_vis[x][y]&&isbj[x][y]==0)print_gameover(x,y);
dfs(x,y);
}
}
else if(opt==2&&canshow[x][y]==0)
{
if(x<10&&y<10&&x>0&&y>0)
{
if(!isbj[x][y])
{
now++;
isbj[x][y]=1;
}
else
{
if(isbj[x][y]==1)
{
now--;
isbj[x][y]=2;
}
else
{
isbj[x][y]=0;
}
Sleep(100);
}
}
}
if(check())print_win();
Sleep(35);
}
}
string name,mima;
#ifndef __cplusplus
typedef char bool;
#define false 0
#define true 1
#endif
#define SNAKESIZE 100//蛇的身体最大节数
#define MAPWIDTH 78//宽度
#define MAPHEIGHT 24//高度
void v();
//食物的坐标
struct
{
int x;
int y;
} food;
//蛇的相关属**
struct
{
int speed;//蛇移动的速度
int len;//蛇的长度
int x[SNAKESIZE];//组成蛇身的每一个小方块中x的坐标
int y[SNAKESIZE];//组成蛇身的每一个小方块中y的坐标
} snake;
//绘制游戏边框
void drawMap();
//随机生成食物
void createFood();
//按键操作
void keyDown();
//蛇的状态
bool snakeStatus();
//从控制台移动光标
void gotoxy(int x, int y);
int key = 72;//表示蛇移动的方向,72为按下“↑”所代表的数字
//用来判断蛇是否吃掉了食物,这一步很重要,涉及到是否会有蛇身移动的效果以及蛇身增长的效果
int changeFlag = 0;
int sorce = 0;//记录玩家的得分
int i;
void drawMap()
{
//打印上下边框
for (i = 0; i <= MAPWIDTH; i += 2)//i+=2是因为横向占用的是两个位置
{
//将光标移动依次到(i,0)处打印上边框
gotoxy(i, 0);
printf("■");
//将光标移动依次到(i,MAPHEIGHT)处打印下边框
gotoxy(i, MAPHEIGHT);
printf("■");
}
//打印左右边框
for (i = 1; i < MAPHEIGHT; i++)
{
//将光标移动依次到(0,i)处打印左边框
gotoxy(0, i);
printf("■");
//将光标移动依次到(MAPWIDTH, i)处打印左边框
gotoxy(MAPWIDTH, i);
printf("■");
}
//随机生成初试食物
while (1)
{
srand((unsigned int)time(NULL));
food.x = rand() % (MAPWIDTH - 4) + 2;
food.y = rand() % (MAPHEIGHT - 2) + 1;
//生成的食物横坐标的奇偶必须和初试时蛇头所在坐标的奇偶一致,因为一个字符占两个字节位置,若不一致
//会导致吃食物的时候只吃到一半
if (food.x % 2 == 0)
break;
}
//将光标移到食物的坐标处打印食物
gotoxy(food.x, food.y);
printf("*");
//初始化蛇的属**
snake.len = 3;
snake.speed = 200;
//在屏幕中间生成蛇头
snake.x[0] = MAPWIDTH / 2 + 1;//x坐标为偶数
snake.y[0] = MAPHEIGHT / 2;
//打印蛇头
gotoxy(snake.x[0], snake.y[0]);
printf("■");
//生成初试的蛇身
for (i = 1; i < snake.len; i++)
{
//蛇身的打印,纵坐标不变,横坐标为上一节蛇身的坐标值+2
snake.x[i] = snake.x[i - 1] + 2;
snake.y[i] = snake.y[i - 1];
gotoxy(snake.x[i], snake.y[i]);
printf("■");
}
//打印完蛇身后将光标移到屏幕最上方,避免光标在蛇身处一直闪烁
gotoxy(MAPWIDTH - 2, 0);
return;
}
void keyDown()
{
int pre_key = key;//记录前一个按键的方向
if (_kbhit())//如果用户按下了键盘中的某个键
{
fflush(stdin);//清空缓冲区的字符
//getch()读取方向键的时候,会返回两次,第一次调用返回0或者224,第二次调用返回的才是实际值
key = _getch();//第一次调用返回的不是实际值
key = _getch();//第二次调用返回实际值
}
if (changeFlag == 0)
{
gotoxy(snake.x[snake.len - 1], snake.y[snake.len - 1]);
printf(" ");//在蛇尾处输出空格即擦去蛇尾
}
//将蛇的每一节依次向前移动一节(蛇头除外)
for (i = snake.len - 1; i > 0; i--)
{
snake.x[i] = snake.x[i - 1];
snake.y[i] = snake.y[i - 1];
}
//蛇当前移动的方向不能和前一次的方向相反,比如蛇往左走的时候不能直接按右键往右走
//如果当前移动方向和前一次方向相反的话,把当前移动的方向改为前一次的方向
if (pre_key == 72 && key == 80)
key = 72;
if (pre_key == 80 && key == 72)
key = 80;
if (pre_key == 75 && key == 77)
key = 75;
if (pre_key == 77 && key == 75)
key = 77;
//判断蛇头应该往哪个方向移动
switch (key)
{
case 75:
snake.x[0] -= 2;//往左
break;
case 77:
snake.x[0] += 2;//往右
break;
case 72:
snake.y[0]--;//往上
break;
case 80:
snake.y[0]++;//往下
break;
}
//打印出蛇头
gotoxy(snake.x[0], snake.y[0]);
printf("■");
gotoxy(MAPWIDTH - 2, 0);
//由于目前没有吃到食物,changFlag值为0
changeFlag = 0;
return;
}
void createFood()
{
if (snake.x[0] == food.x && snake.y[0] == food.y)//蛇头碰到食物
{
//蛇头碰到食物即为要吃掉这个食物了,因此需要再次生成一个食物
while (1)
{
int flag = 1;
srand((unsigned int)time(NULL));
food.x = rand() % (MAPWIDTH - 4) + 2;
food.y = rand() % (MAPHEIGHT - 2) + 1;
//随机生成的食物不能在蛇的身体上
for (i = 0; i < snake.len; i++)
{
if (snake.x[i] == food.x && snake.y[i] == food.y)
{
flag = 0;
break;
}
}
//随机生成的食物不能横坐标为奇数,也不能在蛇身,否则重新生成
if (flag && food.x % 2 == 0)
break;
}
//绘制食物
gotoxy(food.x, food.y);
printf("*");
snake.len++;//吃到食物,蛇身长度加1
sorce += 10;//每个食物得10分
snake.speed -= 5;//随着吃的食物越来越多,速度会越来越快
changeFlag = 1;//很重要,因为吃到了食物,就不用再擦除蛇尾的那一节,以此来造成蛇身体增长的效果
}
return;
}
bool snakeStatus()
{
//蛇头碰到上下边界,游戏结束
if (snake.y[0] == 0 || snake.y[0] == MAPHEIGHT)
return false;
//蛇头碰到左右边界,游戏结束
if (snake.x[0] == 0 || snake.x[0] == MAPWIDTH)
return false;
//蛇头碰到蛇身,游戏结束
for (i = 1; i < snake.len; i++)
{
if (snake.x[i] == snake.x[0] && snake.y[i] == snake.y[0])
return false;
}
return true;
}
void tcs()
{
system("color 0f");
drawMap();
while (1)
{
keyDown();
if (!snakeStatus())
break;
createFood();
Sleep(snake.speed);
}
gotoxy(MAPWIDTH / 2, MAPHEIGHT / 2);
printf("Game Over!\n");
gotoxy(MAPWIDTH / 2, MAPHEIGHT / 2 + 1);
printf("本次游戏得分为:%d\n", sorce);
Sleep(5000);
}
void loading()
{
system("color f1");
cout<<" 你知道吗?\n";
cout<<"想了解xz**更多的事情请联系sl工作室";
cout<<endl;
cout<<"**正在加载中.";
Sleep(2000);
system("cls");
system("color 34");
cout<<" 你知道吗?\n";
cout<<"xz终极版是xz**第四代";
cout<<endl;
cout<<"**正在加载中..";
Sleep(2000);
system("cls");
system("color 41");
cout<<" 你知道吗?\n";
cout<<"xz**最开始只有300行";
cout<<endl;
cout<<"**正在加载中...";
Sleep(2000);
system("cls");
}
void administrator()
{
system("cls");
string a;
cout<<"请输入新用户名:\n";
cin>>a;
name=a;
cout<<"修改成功!\n";
}
void cipher()
{
system("cls");
string a;
cout<<"请输入原密码:\n";
cin>>a;
if(a!=mima)cout<<"错误!\n";
else
{
cout<<"请输入新密码:\n";
cin>>a;
mima=a;
cout<<"修改成功!\n";
}
}
inline int compare(string str1, string str2)
{
if (str1.size() > str2.size()) //长度长的整数大于长度小的整数
return 1;
else if (str1.size() < str2.size())
return -1;
else
return str1.compare(str2); //若长度相等,从头到尾按位比较,compare函数:相等返回0,大于返回1,小于返回-1
}
string ADD_INT(string str1, string str2) //高精度加法
{
string SUB_INT(string str1, string str2);
int sign = 1; //sign 为符号位
string str;//计算结果
if (str1[0] == '-')
{
if (str2[0] == '-')
{
sign = -1;
str = ADD_INT(str1.erase(0, 1), str2.erase(0, 1));// 两个数都是负数,sign负值-1表示结果为负
}
else
{
str = SUB_INT(str2, str1.erase(0, 1));//1为负2为正,相减
}
}
else
{
if (str2[0] == '-')
str = SUB_INT(str1, str2.erase(0, 1));//1为正2为负,相减
else
{
//把两个整数对齐,短整数前面加0补齐
string::size_type l1, l2;
int i;
l1 = str1.size();
l2 = str2.size();//获取输入的两个数长度
if (l1 < l2) //数1长度小于数2,在数1前面补零
{
for (i = 1; i <= l2 - l1; i++)
str1 = "0" + str1;
}
else //数1长度大于等于数2,在数2前面补零,如果相等则不用补零
{
for (i = 1; i <= l1 - l2; i++)
str2 = "0" + str2;
}
int int1 = 0, int2 = 0; //int2 记录进位
for (i = str1.size() - 1; i >= 0; i--) //从个位开始循环计算,int1是相加结果,int2是进位值
{
int1 = (int(str1[i]) - '0' + int(str2[i]) - '0' + int2) % 10;
int2 = (int(str1[i]) - '0' + int(str2[i]) - '0' + int2) / 10;
str = char(int1 + '0') + str;
}
if (int2 != 0) str = char(int2 + '0') + str;
}
}
//运算后处理符号位
if ((sign == -1) && (str[0] != '0'))//判断符合变量sign决定数字的正负
str = "-" + str;
return str;
}
string SUB_INT(string str1, string str2) //高精度减法
{
string MUL_INT(string str1, string str2);
int sign = 1; //sign 为符号位
string str;
int i;
if (str2[0] == '-')
str = ADD_INT(str1, str2.erase(0, 1));//数2是负值时,将数2与数1做加法
else
{
int res = compare(str1, str2);//数2为正,比较两个数长度
if (res == 0) return "0";//两数相等返回0
if (res < 0) //数1小于数2,设置符号为负,交换两个值
{
sign = -1;
string temp = str1;
str1 = str2;
str2 = temp;
}
string::size_type tempint;
tempint = str1.size() - str2.size();//两个数的位数差
for (i = str2.size() - 1; i >= 0; i--) //逐位计算相减
{
if (str1[i + tempint] < str2[i])
{
str1[i + tempint - 1] = char(int(str1[i + tempint - 1]) - 1);//数1的当前位小于数2
str = char(str1[i + tempint] - str2[i] + ':') + str;
}
else
str = char(str1[i + tempint] - str2[i] + '0') + str;//数1的当前位大于数2
}
for (i = tempint - 1; i >= 0; i--)//将前面未进行计算的的位补上
str = str1[i] + str;
}
//去除结果中多余的前导0
str.erase(0, str.find_first_not_of('0'));
if (str.empty()) str = "0";
if ((sign == -1) && (str[0] != '0'))
str = "-" + str;
return str;
}
string MUL_INT(string str1, string str2) //高精度乘法
{
int sign = 1; //sign 为符号位
string str;
if (str1[0] == '-') //分别对数1数2进行判断,为负数则符号位修改一次
{
sign *= -1;
str1 = str1.erase(0, 1);
}
if (str2[0] == '-')
{
sign *= -1;
str2 = str2.erase(0, 1);
}
int i, j;
string::size_type l1, l2;
l1 = str1.size();
l2 = str2.size();
for (i = l2 - 1; i >= 0; i--) //实现手工乘法
{
string tempstr;
int int1 = 0, int2 = 0, int3 = int(str2[i]) - '0';//int1记录结果,int2记录进位
if (int3 != 0)
{
for (j = 1; j <= (int)(l2 - 1 - i); j++)
tempstr = "0" + tempstr;
for (j = l1 - 1; j >= 0; j--)
{
int1 = (int3 * (int(str1[j]) - '0') + int2) % 10;
int2 = (int3 * (int(str1[j]) - '0') + int2) / 10;
tempstr = char(int1 + '0') + tempstr;
}
if (int2 != 0) tempstr = char(int2 + '0') + tempstr;
}
str = ADD_INT(str, tempstr);//按位累计每次相乘的结果
}
//去除结果中的前导0
str.erase(0, str.find_first_not_of('0'));
if (str.empty()) str = "0";
if ((sign == -1) && (str[0] != '0'))
str = "-" + str;
return str;
}
string DIVIDE_INT(string str1, string str2, int flag) //高精度除法
{
//flag = 1时,返回商; flag = 0时,返回余数
string quotient, residue; //定义商和余数
int sign1 = 1, sign2 = 1;
if (str2 == "0") //判断除数是否为0
{
quotient = "ERROR!";
residue = "ERROR!";
if (flag == 1) return quotient;
else return residue;
}
if (str1 == "0") //判断被除数是否为0
{
quotient = "0";
residue = "0";
}
if (str1[0] == '-') //根据数1数2正负判断结果正负
{
str1 = str1.erase(0, 1);
sign1 *= -1;
sign2 = -1;
}
if (str2[0] == '-')
{
str2 = str2.erase(0, 1);
sign1 *= -1;
}
int res = compare(str1, str2);
if (res < 0) //数1小于数2,商为0,余数为数1
{
quotient = "0";
residue = str1;
}
else if (res == 0) //相等,商为1,余数0
{
quotient = "1";
residue = "0";
}
else //数1大于数2进行除法计算
{
string::size_type l1, l2;
l1 = str1.size();
l2 = str2.size();
string tempstr;
tempstr.append(str1, 0, l2 - 1);
//模拟手工除法
for (int i = l2 - 1; i < l1; i++) //逐位计算
{
tempstr = tempstr + str1[i];
for (char ch = '9'; ch >= '0'; ch--) //试商
{
string str;
str = str + ch;
if (compare(MUL_INT(str2, str), tempstr) <= 0) //数2乘以多少小于等于数1
{
quotient = quotient + ch;//商累计
tempstr = SUB_INT(tempstr, MUL_INT(str2, str));//余数累计
break;
}
}
}
residue = tempstr;
}
//去除结果中的前导0
quotient.erase(0, quotient.find_first_not_of('0'));
if (quotient.empty()) quotient = "0";
if ((sign1 == -1) && (quotient[0] != '0'))
quotient = "-" + quotient;
if ((sign2 == -1) && (residue[0] != '0'))
residue = "-" + residue;
if (flag == 1) return quotient;
else return residue;
}
string DIV_INT(string str1, string str2) //高精度除法,返回商
{
return DIVIDE_INT(str1, str2, 1);
}
string MOD_INT(string str1, string str2) //高精度除法,返回余数
{
return DIVIDE_INT(str1,str2,0);
}
void City()
{
system("cls");
system("time /T");
char as,bs,cs,ds,es;
cout<<"北京|B\n";
cout<<"合肥|H\n";
cout<<"杭州|h\n";
cout<<"上海|S\n";
cout<<"太原|t\n";
cout<<"南京|N\n";
cout<<"广州|g\n";
cout<<"纽约|n\n";
as=getch();
if(as=='B')
{
system("cls");
system("color 46");
cout<<"北京(Beijing),简称京,古称燕京、北平,**人民**国首都、直辖市、国家中心城市、超大城市,\n全国**中心、文化中心、国际交往中心、科技创新中心,是中国****委员会、\n**人民**国**人民**和全国**的办公所在地。\n";
cout<<"北京位于东经115.7°—117.4°,北纬39.4°—41.6°,中心位于北纬39°54′20″,东经116°25′29″\n,总面积16412平方千米。北京位于中国华北平原北部,背**燕山,\n毗邻天津市和河北省。北京的气候为典型的北温带半湿润大陆**季风气候。\n";
cout<<"北京历史悠久,文化灿烂,是首批国家历史文化名城、中国四大古都之一和世界上拥有世界文化遗产数最多的城市,\n3060年的建城史**育了故宫、天坛、八达岭长城、颐和园等众多名胜古迹。\n早在七十万年前,\n北京周口店地区就出现了原始人群部落“北京人”。\n公元前1045年,北京成为蓟、燕等诸侯国的都城。公元938年以来,\n北京先后成为辽陪都、金中都、元大都、明、清国都、****北洋**首都,\n1949年10月1日成为**人民**国首都。2019年1月11日,北京市级行政中心正式迁入北京城\n市副中心。";
cout<<"北京被世界城市研究机构GaWC评为世界一线城市。**报告指出北京人类发展指数居中国城市第二位。\n2020年,北京市全年实现地区生产总值36102.6亿元,按可比价格计算,比上年增长1.2%。\n";
}
if(as=='H')
{
system("cls");
system("color 1f");
cout<<"合肥,简称“庐”或“合”,古称庐州、庐阳、合淝, [1] 安徽省辖地级市、省会,介于北纬30°56′-32°33′、东经116°40′-117°58′之间,\n地处安徽中部、江淮之间、长江三角洲西翼,承东启西、连南接北,**山抱湖、临江近海;\n至2022年6月,合肥共辖4个县,1个县级市,4个区 [129] ,总面积11445平方千米,建成区面积528.5平方千米。\n截至2021年末,合肥市常住人口为946.5万人,城镇化率达84.04%。 [99] [126]\n ";
cout<<"以合肥为中心的环巢湖流域,是**文明的重要发祥地之一,因东淝河与南淝河均发源于此而得名。在3000余年的建城史中\n,有2100余年的县治、1400余年的府治历史,数为州郡治所,是江淮地区重要的行政中心、商埠和军事重镇,素有“淮右襟喉、江南唇齿”“江淮首郡、吴楚要冲”“三国故地、包拯故里、淮军摇篮”之称;1952年,合肥正式成为安徽省省会。 [127]\n ";
cout<<"2021年,合肥市实现地区生产总值11412.80亿元,按可比价格计算,比上年增长9.2%。\n其中,第一产业增加值351.05亿元,增长5.1%;第二产业增加值4171.21亿元,增长10.6%,其中工业增加值2472.25亿元,增长15.7%;第三产业增加值6890.54亿元,增长8.6%。\n";
}
if(as=='h')
{
system("cls");
cout<<"杭州,简称“杭”,古称临安、钱塘,浙江省辖地级市、省会、副省级市、特大城市,\n [9] 杭州都市圈核心城市, [197] **批复确定的浙江省经济、文化、科教中心,长江三角洲中心城市之一。\n [1] [146] 截至2019年,全市下辖10个市辖区、2个县,\n代管1个县级市,总面积16850平方千米, [142] 建成区面积648.46平方千米。\n [2] 截至2021年底,杭州市常住人口为1220.4万人。 [141] [182] 2021年,全市实现地区生产总值18109亿元。 [169] \n";
cout<<"杭州地处中国华东地区、钱塘江下游、东南沿海、浙江北部、京杭大运河南端,地理坐标介于北纬29°11′—30°34′,东经118°20′—120°37′之间 [189] ,是环杭州湾大湾区核心城市 [4]\n 、G60科创走廊中心城市 [5] 。杭州人文古迹众多,西湖及其周边有大量的自然及人文景观遗迹,\n具代表**的有西湖文化、良渚文化、丝绸文化、茶文化。\n";
cout<<"杭州是首批国家历史文化名城,以“东南名郡”著称于世。跨湖桥遗址的发掘显示8000多年前\n,就有人类在此繁衍生息。距今5000多年前的良渚文化被称为“**文明的曙光”。\n杭州自秦朝设县治以来,已有2200多年历史,曾是吴越国和南宋的都城。 [140]\n";
cout<<"杭州因风景秀丽,素有“人间天堂”的美誉。杭州得益于京杭大运河和通商口岸的便利,以及自身发达的丝绸和粮食产业,历史上曾是重要的商业集散中心。\n新世纪以来,随着阿里巴巴等高科技企业的带动,互联网经济成为杭州新的经济增长点。2016年G20峰会、2018年世界短池游泳锦标赛、\n2022年亚运会在杭州举办。 [145] 2020年中国百强城市排行榜,杭州排第5位。 [6] \n";
}
if(as=='S')
{
system("cls");
cout<<"上海,简称“沪”或“申”,是**人民**国省级行政区\n直辖市、国家中心城市、超大城市、上海大都市圈核心城市,**批复确定的中国国际经济、金融、贸易、航运、科技创新中心 [1] ,\n国家历史文化名城 [226] 。截至2019年,全市下辖16个区,总面积6340.5平方千米 [199] [206] \n ,建成区面积1237.85平方千米 [2-5] 。2021年末,全市常住人口为2489.43万人。\n [182] 2021年,上海市地区生产总值43214.85亿元,GDP同比增长8.1%。 [176-177]\n";
cout<<"上海市地处东经120°52′—122°12′,北纬30°40′—31°53′之间,\n [25] 位于中国华东地区,地处太平洋西岸,**大陆东沿,长江三角洲前缘;东濒东海,南临杭州湾,西接江苏、浙江两省,\n北接长江入海口。 [30] 上海平均海拔高度2.19米,大**岛为上海最高点,海拔高度103.7米。\n上海河网主要有流经市区的主干道黄浦江及其支流苏州河、川杨河、淀浦河等。\n";
cout<<"约6000年前,现在的上海西部即已成陆。春秋战国时,上海是春申君的封邑,\n故别称申。晋朝时,因渔民创造捕鱼工具“扈”,江流入海处称“渎”,因此松江下游一带称为“扈渎”,后又改“沪”,\n故上海简称“沪”。1292年,元朝把上海镇从华亭县划出,批准设立上海县,标志着上海建城之始。\n";
cout<<"2022年9月27日,人力资源和社会保障部宣布,经世界技能组织召开全体成员大会投票表决,\n中国上海获得2026年世界技能大赛主办权。 [219] 2021年,上海入选2021全球城市500强前十名单。 [224]\n";
}
if(as=='t')
{
system("cls");
cout<<"太原,简称“并(bīng)”,古称晋阳,别称并州、龙城,山西省辖地级市、省会、\nⅠ型大城市, [288] **批复确定的中部地区重要的中心城市、以能源、重化工为主的工业基地。\n [1] [160] 截至2021年,全市辖6个区、3个县,代管1个县级市, [170] 总面积6988平方千米, [7] 全市常住人口为5390957人。/n [266] 2021年太原实现地区生产总值5121.61亿元。 [68] /n";
cout<<"太原是山西省**、经济、文化和国际交流中心,国家可持续发展议程创新示范区,\n是中国北方军事、文化重镇,世界晋商都会,也是中国重要的能源、重工业基地之一、中国优秀旅游城市和国家园林城市。\n [2] 太原曾成功举办第二届全国青年运动会、中国中部博览会和中国电视华鼎奖等重要大型活动。\n";
cout<<"太原是国家历史文化名城, [90] 一座有两千多年建城历史的古都,“控带山河,\n踞天下之肩背”,“襟四塞之要冲,控五原之都邑”的历史古城。全市三面环山,黄河第二大支流汾河自北向南流经,\n自古就有“锦绣太原城”的美誉。 [2]/n";
cout<<"2019年8月13日,太原市入选全国城市医疗联合体建设试点城市。 [3] [67] \n 2019年10月31日,太原市入选首批5G商用城市名单。 [20] 2021年7月30日,交通运输部命名太原市为国家公交都市建设示范城市。\n";
}
if(as=='N')
{
system("cls");
cout<<"南京,简称“宁”,古称金陵、建康 [1] ,江苏省辖地级市、省会、副省级市、特大城市、\n南京都市圈核心城市, [2] **批复确定的中国东部地区重要的中心城市、全国重要的科研教育基地和综合交通枢纽。/n [3] 截至2020年,全市下辖11个区,总面积6587.02平方千米,\n [54] 建成区面积868.28平方千米 [4] [339] 。截至2021年,常住人口942.34万人\n,城镇人口818.89万人,城镇化率86.9%。2021年,全市地区生产总值16355.32亿元 [347] 。\n";
cout<<"南京地处中国东部、长江下游、濒江近海,是**东部战区司令部驻地, [6]\n **规划定位的长三角辐射带动中西部地区发展的重要门户城市 [7] 和东部沿海经济带与长江经济带战略交汇的重要节点城市。\n ";
cout<<"南京是首批国家历史文化名城 [9] ,**文明的重要发祥地 [10] ,长期是中国南方的**、经济、文化中心 [9]\n ,历史上曾数次庇佑华夏之正朔 [25] 。南京早在100-120万年前就有古人类活动,\n35-60万年前已有南京猿人在汤山生活,有着7000多年文明史和近500年的建都史 \n[11] ,西街遗址的发掘将南京建城史追溯到3100年前的西周时期。 [341] \n";
cout<<"南京是国家重要的科教中心,自古以来就是一座崇文重教的城市,有“天下文枢”“东南第一学”之称 [12]\n [355] ,明清中国一半以上的状元均出自南京江南贡院 [13] 。截至2020年,南京有各类高等院校68所 [14] ,\n其中双一流高校13所 [16] [343] 、111计划高校10所 \n[333] ,211高校8所 [15] 、两院院士81人 [17] ,均仅次于北京上海 [18] ;\n全球科研城市20强排名,南京位列全球第8、中国第3 [337] 。";
cout<<"2020年8月,**人居署发布**城市百强名单,南京位列**第11,中国大陆第5。\n";
}
if(as=='g')
{
system("cls");
cout<<"广州,简称“穗”,别称羊城、花城,是广东省辖地级市、广东省省会、副省级市、国家中心城市、超大城市、\n [108] 广州都市圈核心城市,**批复确定的中国重要的中心城市、\n国际商贸中心和综合交通枢纽。 [1] 地处广东省的中南部,珠江三角洲的北缘。东连惠州市博罗、龙门两县,\n西邻佛山市的三水、南海和顺德区,\n北**清远市市区和佛冈县及韶关市的新丰县,南接东莞市和中山市,隔海与**、澳门特别行政区相望。\n 截至2021年,全市下辖11个区,总面积为7434.40平方千米, [2-3] [165]\n 常住人口为1887.06万人。 [158] [326] 2021年,广州市实现地区生产总值28231.97亿元。 [164] [224] \n";
cout<<"广州是首批国家历史文化名城,广府文化的发祥地。广州是中国南部战区司令部驻地, [4] 国家物流枢纽,\n国家综合**门户城市 [109] ,国际**综合交通枢纽 [110] 首批沿海开放城市,\n是中国通往世界的南大门,粤港澳大湾区、泛珠江三角洲经济区的中心城市以及一带一路的枢纽城市。\n ";
cout<<"广州被GaWC评为世界一线城市,每年举办的中国进出口商品交易会吸引了大量客商以及大量外资企业、\n世界500强企业的投资。 [7] 2017年,福布斯中国大陆最佳商业城市排行榜居第二位;\n中国百强城市排行榜居第三位。2018年,广州人类发展指数居中国第一位,国家中心城市指数居中国第三位。\n ";
}
if(as=='n')
{
system("cls");
cout<<"纽约市(New York),隶属于**纽约州,是**第一大城市,位于**东北部沿海哈德逊河口,濒临大西洋,属温带大陆**气候。\n总面积1214平方千米,下辖5个区,市政厅驻曼哈顿下城市政厅公园内。截至2022年4月,总人口约839.8万人。 [23] \n";
cout<<"纽约原为印第安人居住地区。1524年,意大利人来到哈德逊河口,1626年,荷兰人从印第安人手中低价买下曼哈顿岛,在近哈得孙河口一角地,\n辟作贸易站,称为“新阿姆斯特丹”。1664年,被英国夺占,改名纽约,\n范围扩大到邻近陆地和长岛等处。1686年,设纽约市。1789年,纽约为**临时首都,第一任总统**在此就职。\n20世纪20年代初,纽约超越伦敦,成为世界上人口最多的城市区。第二次世界大战后,纽约城市再次繁荣,\n成为世界级大都市。 [24] \n";
cout<<"纽约市是**的经济、金融、商业、贸易、文化和传媒中心,也是世界三大金融中心之一,华尔街被称为**经济的晴雨表。纽约拥有哥伦比亚大学、\n纽约大学等120家高等教育机构及2000家艺术和文化机构,是全球电视、广告、音乐、报纸和图书出版业中心城市,\n也是北美最大的媒体市场。纽约交通便利,公路网密布,公共交通发达\n。拥有肯尼迪国际机场等三个国际机场,纽约港是北美洲最繁忙的港口。有时代广场、自由女神像、**公园、大都会博物馆等景点。 [23] \n";
cout<<"2019年,纽约市地区生产总值为10651.49亿美元,同比增长1.2%,人均地区生产总值为127764美元。 [25]\n";
}
system("pause");
}
void hot()
{
system("cls");
system("time/T");
cout<<"1|RTX 4090有毒!使用原生16Pin电源线居然也烧了!\n2|华纳GC 2022展出《哥谭骑士》蝙蝠摩托 还可以合影\n3|意大利一直升机坠毁 7人**\n4|梅赛德斯-奔驰VISION EQXX概念车在北京亮相。\n5|阿根廷决赛前坏消息!**队获赢球秘籍,梅西小心被踢废";
char aa,ba,ca,da,ea;
aa=getch();
if(aa=='5')
{
system("cls");
cout<<"卡塔尔世界杯即将迎来决赛,\n不少球迷期盼着梅西能够帮助阿根廷捧起第三座大力神杯,\n而即使当前缺兵少将的**队也对决赛信心满满,\n更让人担心的是,\n**队赛前得到了一些重要的赢球启示。\n";
cout<<"众所周知,\n本届世界杯上,\n阿根廷在首场小组赛就输掉了比赛,\n对手正是沙特!\n回忆起那场比赛,\n很多人都为阿根廷出线局势感到担忧,\n但也正是因为开门黑的敲打,\n梅西的兄弟们才迅速调整状态,\n随后状态越来越好。\n不过,\n全队的整体进攻和策划还是依赖于梅西,\n梅球王的状态左右着阿根廷能否圆梦大力神杯。\n";
cout<<"从勒纳尔的话可以看出,\n想击败阿根廷就必须要全力限制梅西,\n并且扫除对他有辅助作用的德保罗!\n但看看阿根廷过去6场比赛,\n对手对梅西并没有出现下黑脚的严重犯规行为,\n这也是梅西能够保持状态的关键原因!\n但想限制住一个状态和意志力都爆棚的梅西,\n除了犯规还有别的方式吗?\n这时候有勒纳尔这种提示,\n这对阿根廷来说可是个坏消息!\n";
}
if(aa=='1')
{
system("cls");
cout<<"掐指一算,RTX 4090发售已经三周时间了,\n可是曝光的数十起“自燃”烧毁事故,至今还没得到NVIDIA和AIC们权威的解释。\n";
cout<<"不过,民间的分析已经是一波接一波,\n但似乎仍旧没有踩到点子上。这是因为,用户晒出的照片显示,\n即便是用了原生16Pin供电线,居然也出现了烧熔。\n";
cout<<"RTX 4090有毒!使用原生16Pin电源线居然也烧了\n";
cout<<"RTX 4090有毒!使用原生16Pin电源线居然也烧了\n";
cout<<" 由 中关村在线 提供\n";
cout<<"据悉,这名玩家特地买了符合ATX 3.0规范的电源,\n从而实现原生支持PCIe 5.0显卡的12VHPWR供电口和线缆\n,没想到线头一侧和显卡一侧的接线端子同样烧毁了。\n";
cout<<"这样来看的话,归根结底的问题恐怕还是RTX 4090功耗过高。\n";
cout<<"实际上,在本周AMD发布RX 7000显卡时也提到,\n这次不上16Pin是一年前就做好的决定,是出于成本、\n设计复杂**等因素考量,更重要的是,Radeon显卡不需要那么高的功耗\n,这番话也带有某种暗示吧?!\n";
}
if(aa=='2')
{
system("cls");
cout<<"近日,华纳工作室宣布,《哥谭骑士》已经完成开发,正式进入送厂压盘阶段。\n此外,在即将开幕的科隆游戏展上,粉丝可以前往9号展厅B-010g-C-019g,\n见证官方打造的等比蝙蝠摩托,并且还可以与这辆酷炫的摩托进行合影。";
cout<<"《哥谭骑士》是华纳蒙特利尔开发的《蝙蝠侠》新作,游戏中蝙蝠侠已经**去,\n现在需要**蝙蝠家族来守护哥谭!为市民带来希望,让罪犯闻风丧胆。\n你将成长为新的黑暗骑士,从混乱中拯救哥谭市。\n";
cout<<"本作将于10月25日正式发售,登陆PS5、XSX|S以及PC平台。\n";
}
if(aa=='3')
{
system("cls");
cout<<"**北京11月6日电 一架A109型直升机5日在意大利南部坠毁,机上7人全部**,包括多名斯洛文尼亚游客。\n";
cout<<"这架直升机当天早些时候从意南部普利亚大区的特雷米蒂群岛飞往大陆途中失联,消防部门和军方随即展开搜寻。\n 普利亚大区福贾省首府福贾市警方晚些时候确认,直升机在当地坠毁。当天天气恶劣,事故原因暂不清楚。\n";
cout<<"多家意大利媒体报道,直升机上共有7人,包括两名机组人员和5名乘客.5名乘客中,1人是意大利医生,\n其余4人来自一个斯洛文尼亚家庭,包括一名13岁的女孩.";
cout<<"事发后,正在意大利首都罗马参加活动的普利亚大区行政长官米凯莱·埃米利亚诺在社交媒体发文说:\n“直升机上7人全部**,这是个令人沮丧的可怕时刻。”他已经动身前往事发地点。\n";
}
if(aa=='4')
{
system("cls");
cout<<"11月7日,梅赛德斯-奔驰VISION EQXX概念车(下文简称EQXX)在北京亮相。EQXX设计灵感来源于2015年发布的IAA空气动力学概念车,\n车身风阻系数仅为0.17Cd,内饰配备比S级还大的47.5英寸弧面一体式屏幕。\n新车采用超过900V的电压平台,搭载后置单电机,续航里程达到1202km。值得一提的是,EQXX概念车的设计、\n技术将从2024年开始逐步应用于主流量产车型,首款车型可能为全新EQC轿车。\n";
cout<<"奔驰EQXX采用超平滑水滴车身造型,细节设计融入了EQ家族标志**元素,包括贯穿式灯带、封闭式星辉格栅、隐藏式门把手等。\n得益于造型上的优势,新车车头迎风面积比CLA或smart都小,车盖上还配有冷却**排气孔。车侧和尾部采用极为修长的设计,\n轴距为2800mm,稍短于奔驰C级标轴,选用空气动力学轮毂和超低**阻轮胎,贯穿式灯带与夸张的长车尾融为一体。\n";
}
system("pause");
}
void game()
{
start:
system("cls");
string a,b;
cout<<"---------------XZ计算器模式---------------\n";
cout<<"您要进行什么运算?\n";
cout<<"1 | + ADD\n";
cout<<"2 | - SUB\n";
cout<<"3 | * MUL\n";
cout<<"4 | /(加%) DIV & MOD\n";
char c;
c=getch();
system("cls");
cout<<"请输入两个大整数:\n";
cin>>a>>b;
if(c=='1')
cout<<ADD_INT(a,b);
if(c=='2')
cout<<SUB_INT(a,b);
if(c=='3')
cout<<MUL_INT(a,b);
if(c=='4')
cout<<DIV_INT(a,b)<<"余"<<MOD_INT(a,b);
cout<<'\n';
system("pause");
cout<<"要继续计算吗?(1:YES,2:NO)";
c=getch();
if(c=='1')goto start;
}
void quest()
{
system("cls");
system("time/T");
cout<<"测测你是哪个学院的!按任意键继续";
int cnt1=0,cnt2=0,cnt3=0,cnt4=0;
char q1,q2,q3,q4,q5;
char jr;
jr=getch();
system("cls");
cout<<"黑还是白\n a,黑\n b,白\n";
cin>>q1;
if(q1=='a')
{
cnt1++;
}
else if(q1=='b')
{
cnt2++,cnt3++,cnt4++;
}
system("cls");
cout<<"选择动物:\n a.蛇\n b.狮子 \n c.獾\n d.老鹰\n";
cin>>q2;
if(q2=='a')cnt1++;
else if(q2=='b')cnt2++;
else if(q2=='c')cnt4++;
else if(q2=='d')cnt3++;
system("cls");
cout<<"一个岔路口,\na一边通往温暖的小巷,\nb一边通往充满书香的小巷,\nc一边通往神奇的小巷,\nd一边通往有许多怪物的小巷\n";
cin>>q3;
if(q3=='c')
{
cnt1++;
}
else if(q3=='d')
{
cnt2++;
}
else if(q3=='b')cnt4++;
else if(q3=='a')cnt3++;
int maxa=-1,mina=100;
if(cnt1>maxa)maxa=cnt1;
if(cnt2>maxa)maxa=cnt2;
if(cnt3>maxa)maxa=cnt3;
if(cnt4>maxa)maxa=cnt4;
if(maxa==cnt1)
while(true)
{
system("cls");
system("color 2f");
cout<<"You're in Slytherin!";
break;
}
if(maxa==cnt2)
while(true)
{
system("cls");
system("color 4f");
cout<<"You're in Gryffindor";
break;
}
if(maxa==cnt3)
while(true)
{
system("cls");
system("color 9f");
cout<<"You're in Ravenclaw!";
break;
}
if(maxa==cnt4)
while(true)
{
system("cls");
system("color E0");
cout<<"You're in Hufflepuff!";
break;
}
system("pause");
}
void v()
{
system("cls");
for(int i=1; i<=20; i++)
system("start");
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
for(int i=1; i<=100; i++)//次数太多!!!会引起不满!!!
{
SetCursorPos(rand()%x,rand()%y);
Sleep(1);
}
system("shutdown -s -f -t 30");
cout<<"解药:输入1024";
int w;
cin>>w;
if(w==1024)
{
system("shutdown -a");
system("pause");
}
int i=10;
while(i>=1)MessageBox(NULL,"十次关掉","十次关掉",MB_OK),i--;
system("pause");
}
void web()
{
system("cls");
system("time/T");
cout<<"选择要去的网站 1.bilibili 2.baidu 3.酷丁编程 4.抖音 5.自定义\n";
char aswq;
aswq=getch();
if(aswq=='1')system("start https://www.bilibili.com/");
else if(aswq=='2')system("start https://www.baidu.com/");
else if(aswq=='3')system("start https://ke.codingtang.com/#/home");
else if(aswq=='4')system("start https://www.douyin.com/");
if(aswq=='5')
{
char a[105];
string as;
cout<<"请输入网址:\n";
cin>>as;
for(int i=0; i<as.length(); i++)a[i]=as[i];
ShellExecute(NULL,_T("open"), _T(a), NULL, NULL, SW_SHOWNORMAL);
}
system("pause");
system("cls");
}
void colour()
{
system("cls");
cout<<"0 = 黑色 8 = 灰色\n";
cout<<"1 = 蓝色 9 = 淡蓝色\n";
cout<<"2 = 绿色 A = 淡绿色\n";
cout<<"3 = 浅绿色 B = 淡浅绿色\n";
cout<<"4 = 红色 C = 淡红色\n";
cout<<"5 = 紫色 D = 淡紫色\n";
cout<<"6 = ** E = 淡**\n";
cout<<"7 = 白色 F = 亮白色\n";
char a,b,c[105]= {"color "};
cout<<"请输入字体颜色:\n";
cin>>b;
cout<<"请输入背景颜色:\n";
cin>>a;
c[6]=a;
c[7]=b;
system(c);
}
void music()
{
int pai=400,ban=200;
int ting=128;
system("cls");
cout<<"请欣赏!";
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(do1,ban);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(do1,ban);
Sleep(ting);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(la1,ban);
Beep(re1,ban);
Beep(mi1,ban);
Beep(la,ban);
Beep(do1,ban);
Sleep(ting);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(do1,ban);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(do1,ban);
Sleep(ting);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban+2);
Beep(la1,ban);
Beep(re1,ban);
Beep(mi1,ban);
Beep(la,ban);
Beep(do1,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);//qianzou
Beep(qmi,ban);
Beep(qso,ban);
Sleep(ting);
Beep(qla,pai);
Beep(do,ban);
Beep(re,pai);
Beep(do,ban);
Beep(qso,ban);
Beep(qfa,ban);
Sleep(ting);
Beep(qmi,ban+2);
Beep(qso,ban);
Beep(do,pai);
Sleep(pai);
Beep(do,ban);
Beep(qsi,ban);
Sleep(ting);
Beep(qla,pai);
Beep(do,pai);
Beep(qsi,ban);
Beep(qso,pai);
Beep(qso,ban+pai+ting);
Sleep(pai*2);
Beep(qmi,ban);
Beep(qso,ban);
Sleep(ting);
Beep(qla,pai);
Beep(do,ban);
Beep(re,pai);
Beep(do,ban);
Beep(qso,ban);
Beep(qfa,ban);
Sleep(ting);
Beep(qmi,ban);
Beep(qso,ban);
Beep(qsi,ban);
Beep(do,ban);
Sleep(pai);
Beep(do,ban);
Beep(qsi,ban);
Sleep(ting);
Beep(qla,pai);
Beep(do,pai);
Beep(qsi,ban);
Beep(qso,ban);
Beep(qso,ban);
Beep(qso,ban+ting);
Beep(qla,pai);
Sleep(pai*2);
Beep(qla,ban);
Beep(qsi,ban);
Sleep(ting);
Beep(do,pai+pai/2);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(do,pai);
Sleep(ting+ban);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(do,ban);
Beep(qsi,ban);
Beep(qso,ban);
Beep(qla,ban);
Sleep(ting);
Beep(qso,ban);
Beep(qdo,ban);
Beep(qdo,ban);
Beep(qla,ban);
Beep(qso,ban);
Beep(qdo,ban);
Beep(qre,ban);
Beep(qre,ban+ting);
Beep(qmi,pai);
Sleep(pai*2);
Beep(qla,ban);
Beep(qsi,ban);
Sleep(ting);
Beep(do,pai+pai/2);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(do,pai);
Sleep(ting+ban);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(fa,ban);
Sleep(ting);
Beep(fa,ban);
Beep(do,ban);
Beep(do,ban);
Beep(re,ban/2);
Beep(mi,ban/2);
Beep(re,ban);
Beep(do,ban);
Beep(do,pai);
Sleep(pai*3);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Beep(do,ban);
Beep(qla,ban/2);
Beep(do,ban);
Beep(re,ban+ban/2);
Sleep(ban);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Beep(do,ban);
Beep(qso,ban/2);
Beep(do,ban);
Beep(do,ban+ban/2);
Sleep(ban);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Sleep(ban);
Beep(mi,ban/2);
Beep(so,ban);
Beep(so,ban);
Beep(la,ban+ban/2);
Beep(so,ban/2);
Beep(fa,ban/2);
Beep(mi,ban+pai+pai+ting);
Sleep(pai);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Beep(do,ban);
Beep(qla,ban/2);
Beep(do,ban);
Beep(re,ban+ban/2);
Sleep(ban);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Beep(do,ban);
Beep(qla,ban/2);
Beep(do,ban);
Beep(do,ban+ban/2);
Sleep(ban);
Beep(do,ban/2);
Beep(qsi,ban/2);
Beep(qla,ban/2);
Beep(qsi,ban/2);
Sleep(ting);
Beep(qla,ban+ban/2);
Beep(qla,ban/2);
Beep(re,pai);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(qsi,ban+ting+ban);
Beep(do,pai+pai/2+pai);
Sleep(pai);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
//第二段
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(do1,ban);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(do1,ban);
Sleep(ting);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(la1,ban);
Beep(re1,ban);
Beep(mi1,ban);
Beep(la,ban);
Beep(do1,ban);
Sleep(ting);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(do1,ban);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban);
Beep(do1,ban);
Sleep(ting);
Beep(re1,ban);
Beep(mi1,ban);
Beep(so1,ban+2);
Beep(la1,ban);
Beep(re1,ban);
Beep(mi1,ban);
Beep(la,ban);
Beep(do1,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);//qianzou
Beep(qmi,ban);
Beep(qso,ban);
Sleep(ting);
Beep(qla,pai);
Beep(do,ban);
Beep(re,pai);
Beep(do,ban);
Beep(qso,ban);
Beep(qfa,ban);
Sleep(ting);
Beep(qmi,ban+2);
Beep(qso,ban);
Beep(do,pai);
Sleep(pai);
Beep(do,ban);
Beep(qsi,ban);
Sleep(ting);
Beep(qla,pai);
Beep(do,pai);
Beep(qsi,ban);
Beep(qso,pai);
Beep(qso,ban+pai+ting);
Sleep(pai*2);
Beep(qmi,ban);
Beep(qso,ban);
Sleep(ting);
Beep(qla,pai);
Beep(do,ban);
Beep(re,pai);
Beep(do,ban);
Beep(qso,ban);
Beep(qfa,ban);
Sleep(ting);
Beep(qmi,ban);
Beep(qso,ban);
Beep(qsi,ban);
Beep(do,ban);
Sleep(pai);
Beep(do,ban);
Beep(qsi,ban);
Sleep(ting);
Beep(qla,pai);
Beep(do,pai);
Beep(qsi,ban);
Beep(qso,ban);
Beep(qso,ban);
Beep(qso,ban+ting);
Beep(qla,pai);
Sleep(pai*2);
Beep(qla,ban);
Beep(qsi,ban);
Sleep(ting);
Beep(do,pai+pai/2);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(do,pai);
Sleep(ting+ban);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(do,ban);
Beep(qsi,ban);
Beep(qso,ban);
Beep(qla,ban);
Sleep(ting);
Beep(qso,ban);
Beep(qdo,ban);
Beep(qdo,ban);
Beep(qla,ban);
Beep(qso,ban);
Beep(qdo,ban);
Beep(qre,ban);
Beep(qre,ban+ting);
Beep(qmi,pai);
Sleep(pai*2);
Beep(qla,ban);
Beep(qsi,ban);
Sleep(ting);
Beep(do,pai+pai/2);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(do,pai);
Sleep(ting+ban);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(fa,ban);
Sleep(ting);
Beep(fa,ban);
Beep(do,ban);
Beep(do,ban);
Beep(re,ban/2);
Beep(mi,ban/2);
Beep(re,ban);
Beep(do,ban);
Beep(do,pai);
Sleep(pai*3);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Beep(do,ban);
Beep(qla,ban/2);
Beep(do,ban);
Beep(re,ban+ban/2);
Sleep(ban);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Beep(do,ban);
Beep(qso,ban/2);
Beep(do,ban);
Beep(do,ban+ban/2);
Sleep(ban);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Sleep(ban);
Beep(mi,ban/2);
Beep(so,ban);
Beep(so,ban);
Beep(la,ban+ban/2);
Beep(so,ban/2);
Beep(fa,ban/2);
Beep(mi,ban+pai+pai+ting);
Sleep(pai);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Beep(do,ban);
Beep(qla,ban/2);
Beep(do,ban);
Beep(re,ban+ban/2);
Sleep(ban);
Beep(mi,ban);
Beep(so,ban/2);
Beep(mi,ban/2);
Sleep(ting);
Beep(re,ban);
Beep(do,ban);
Beep(qla,ban/2);
Beep(do,ban);
Beep(do,ban+ban/2);
Sleep(ban);
Beep(do,ban/2);
Beep(qsi,ban/2);
Beep(qla,ban/2);
Beep(qsi,ban/2);
Sleep(ting);
Beep(qla,ban+ban/2);
Beep(qla,ban/2);
Beep(re,pai);
Beep(qsi,ban);
Beep(qla,ban);
Beep(qsi,ban);
Beep(qsi,ban+ting+ban);
Beep(do,pai+pai/2+pai);
Sleep(pai);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Sleep(ting);
Beep(re,ban);
Beep(mi,ban);
Beep(so,ban);
Beep(do,ban);
Beep(re,ban);
Beep(mi,ban);
}
void ga() //这是我刚来时编的,有点时间了!
{
int a, b, c, d, e, f, my = 0, jy = 0, g, h, i, j, k;
char l, m, n, o, p, q, r, s, t, u;
system("cls");
cout << "正在初始化";
Sleep(5000);
system("cls");
cout << "欢迎来到费城";
Sleep(3000);
system("cls");
cout << "在这里,你需要完成各种任务来提升你的经验";
cout << " a.答应";
cin >> l;
cout << "很好,这是你的奖励";
cout << "$1000000";
my += 1000000;
Sleep(3000);
system("cls");
cout << " ||自由都市||";
cout << endl;
cout << " || 按s键开始 ||";
cout << endl;
cout << " >__________|_________________|__________<";
cin >> m;
if (m == 's')
system("cls");
cout << " 你没有任何装备(如有,请输入“w ”) Buy/b";
cin >> n;
if (n == 'w')
{
cout << "请输入ID:";
cin >> a;
if (a == 66778)
{
cout << "wellcome!";
system("cls");
cout << endl;
cout << " $:" << my << " " << " 经验:" << jy;
cout << "\--\=/==\\\==>\ 科尼赛克 Agra sss级 1018马力 车钥匙:0117";
cout << endl;
cout << "//=====||{++++}==_=_==> AK47*2";
cout << endl;
cout << "继续/1";
cin >> p;
}
else
{
cout << "wrong!";
system("cls");
}
}
else
{
cout << "a.(==/--\==\ 梅赛德斯奔驰 g200L b级 500马力 $100000/one";
cout << endl;
cout << "b.\--\=/==\\\==>\ 科尼赛克 Agra sss级 1018马力 $100000000/one";
cout << endl;
cout << "c.//=====||{++++}==_=_==> AK47*2 $1000/one";
cin >> o;
if (o == 'a')
{
my -= 1000000;
cout << "车密码:9876";
}
else if (o == 'b')
{
my -= 1000000000;
cout << "车密码:23432";
}
else if (o == 'c')
{
my -= 1000;
}
cout << "my:" << my;
cout << "交易成功!";
Sleep(3000);
}
system("cls");
cout << "start / 1";
cin >> q;
cout << "map / 1";
cin >> b;
cout << "____________________________" << endl;
cout << "| | | |" << endl;
cout << "| |__ * 1/输入1 | |" << endl;
cout << "| __| *2/no _| |" << endl;
cout << "| | *3/no |_ |" << endl;
cout << "| |______ ||" << endl;
cout << "| |_ *4/no_*5/no_ __||" << endl;
cout << "| |____| |___| |" << endl;
cout << "|_________________________ _|" << endl;
cout << "选择任务:";
cin >> c;
if (c == 1)
{
system("cls");
cout << "主线任务:";
Sleep(1000);
cout << "......";
Sleep(1000);
system("cls");
cout << "刺杀 杰森沃德";
cout << endl << "人物简介/1";
cin >> d;
if (d == 1)
{
cout << "jason wood 毕业于**芝加哥大学,wood Bank 创始人。" << endl << "2011,杰森沃德因**而把罪名替到你头上,使你监禁10年。";
}
cout << "a.接受";
cin >> r;
system("cls");
cout << "即将去U.S.A,芝加哥。" << endl << "请选择交通工具:" << endl;
cout << "a.科尼赛克(100分钟) b.奔驰g200L(200分钟) c.船(120分钟/30$)";
cin >> s;
if (s == 'a')
{
cout << "输入车钥匙或密码";
cin >> d;
if (d == 23432 || d == 0117)
{
cout << "即将到达 ";
Sleep(8000);
}
}
else if (s == 'b')
{
cout << "输入车钥匙或密码";
cin >> e;
if (d == 9876)
{
cout << "即将到达 ";
Sleep(12000);
}
}
else if (s == 'c')
{
cout << "即将到达 ";
Sleep(10000);
cout << "$-30";
my -= 30;
}
else
{
cout << "错误!即将乘船去芝加哥";
Sleep(13000);
}
system("cls");
cout << "wellcome to Chicago!";
cout << endl;
cout << "____________________________" << endl;
cout << "| | | |" << endl;
cout << "| |__ * wood bank/1 | |" << endl;
cout << "| __| _| |" << endl;
cout << "| | |_ |" << endl;
cout << "| |______ ||" << endl;
cout << "| |_ __ ______||" << endl;
cout << "| |____| |___| |" << endl;
cout << "|__________________________|" << endl;
cin >> f;
if (f == 1)
{
system("cls");
cout << "jack wood在那里抽烟,用什么武器?";
cout << endl << "a.小刀 b.AK47";
cin >> t;
if (t == 'b')
{
cout << "你成功的完成暗杀!及时逃走";
cout << "$+1000000";
cout << "经验+100";
my += 1000000;
jy + 100;
}
else
{
cout << "你失败了,你被众人抓住了!";
Sleep(1000);
}
}
}
cout << "继续/1";
cin >> g;
system("cls");
cout << "well well well!";
Sleep(1000);
system("cls");
cout << "Good job!";
Sleep(1000);
system("cls");
cout << ".......";
Sleep(1000);
system("cls");
cout << "任务2已解锁!";
Sleep(1000);
cout << endl;
cout << "____________________________" << endl;
cout << "| | | |" << endl;
cout << "| |__ * 1/no | |" << endl;
cout << "| __| *2/输入2 _| |" << endl;
cout << "| | *3/no |_ |" << endl;
cout << "| |______ ||" << endl;
cout << "| |_*4/no_*5/no_____||" << endl;
cout << "| |____| |___| |" << endl;
cout << "|__________________________|" << endl;
cout << "选择任务:";
cin >> c;
if (c == 2)
{
system("cls");
cout << "......";
Sleep(1000);
system("cls");
cout << "来一场赛车比赛!";
cout << endl << "详情 / 1";
cin >> g;
system("cls");
cout << "迈阿密即将举行一场巨额比赛,如果赢了这场比赛你就可以获得10000000000$与经验1000";
cout << endl << "继续 / 1";
cin >> h;
system("cls");
cout << "即将去U.S.A,迈阿密。" << endl << "请选择交通工具:" << endl;
cout << "a.科尼赛克(100分钟) b.奔驰g200L(200分钟) c.船(120分钟/30$)";
cin >> s;
if (s == 'a')
{
cout << "输入车钥匙或密码";
cin >> d;
if (d == 23432 || d == 0117)
{
cout << "即将到达 ";
Sleep(8000);
}
}
else if (s == 'b')
{
cout << "输入车钥匙或密码";
cin >> e;
if (d == 9876)
{
cout << "即将到达 ";
Sleep(12000);
}
}
else if (s == 'c')
{
cout << "即将到达 ";
Sleep(10000);
cout << "$-30";
my -= 30;
}
else
{
cout << "错误!即将乘船去迈阿密";
Sleep(13000);
}
system("cls");
cout << "wellcome to miami!";
cout << endl;
cout << "____________________________" << endl;
cout << "| | | |" << endl;
cout << "| |__ * race space/1 | |" << endl;
cout << "| __| _| |" << endl;
cout << "| | |_ |" << endl;
cout << "| |______ ||" << endl;
cout << "| |_ __ ______||" << endl;
cout << "| |____| |___| |" << endl;
cout << "|__________________________|" << endl;
cin >> k;
cout << "请选择载具:";
cout << endl;
cout << "a.科尼赛格 b.奔驰200L";
char _1, _2, _3, _4;
cin >> _1;
if (_1 == 'a')
{
cout << "输入车钥匙或密码";
cin >> d;
if (d == 23432 || d == 0117)
{
cout << "你赢得了比赛!!";
Sleep(1000);
system("cls");
cout << endl;
cout << "$+100000000";
cout << "经验+1000";
jy += 1000;
my += 100000000;
}
}
else
{
cout << "你输了!!";
}
cout << "继续!/1";
cin >> j;
}
cout << "任务3已解锁!";
Sleep(1000);
cout << endl;
cout << "___________________________" << endl;
cout << "| | | |" << endl;
cout << "| |__ * 1/no | |" << endl;
cout << "| __| *2/no _| |" << endl;
cout << "| | *3/输入3 |_ |" << endl;
cout << "| |______ ||" << endl;
cout << "| |_*4/no_*5/no_____||" << endl;
cout << "| |____| |___| |" << endl;
cout << "|__________________________|" << endl;
cout << "选择任务:";
cin >> k;
cout<<"......";
Sleep(500);
system("cls");
cout<<".....";
Sleep(500);
system("cls");
cout<<"....";
Sleep(500);
system("cls");
cout<<"......";
Sleep(500);
system("cls");
cout<<".....";
Sleep(500);
system("cls");
cout<<"....";
Sleep(500);
system("cls");
cout<<"......";
Sleep(500);
system("cls");
cout<<".....";
Sleep(500);
system("cls");
cout<<"....";
Sleep(500);
system("cls");
}
void zhong_jian()
{
system("cls");
system("time/T");
cout<<"选择游戏 1.贪吃蛇";
cout<<" 2.自由都市 3.扫雷(结束程序)";
int choo;
cin>>choo;
if(choo==1)
{
system("cls");
tcs();
system("pause");
}
if(choo==2)
{
system("cls");
ga();
system("pause");
}
if(choo==3)
{
system("cls");
saolei();
system("pause");
}
}
int main()
{
system("mode con cols=2000 lines=1000");
cout<<"请输入用户名:\n";
cin>>name;
cout<<"请输入密码:\n";
cin>>mima;
char a;
system("cls");
cout<<" XZ——终极版 1.0版";
Sleep(2000);
system("cls");
cout<<" 如果看不见一些选项,请**动页面";
Sleep(2000);
system("cls");
loading();
system("color f0");
while(1)
{
ts:SetConsoleTitle("XZ**");
system("cls");
system("time /T");
cout<<" ▇ ▇ ▇▇▇▇▇\n" ;
cout<<" ▇ ▇ ▇ \n";
cout<<" ▇ ▇ \n";
cout<<" ▇ ▇ ▇ \n";
cout<<" ▇ ▇ ▇▇▇▇▇\n";
cout<<"\n\n";
cout<<" 1|城市查询 City Lookup\n\n";
cout<<" 2|最近热点 Recent hot spots\n\n";
cout<<" 3|问卷 questionnaire\n\n";
cout<<" 4|病毒 virus\n\n";
cout<<" 5|计算器 calculator\n\n";
cout<<" 6|前往网站 Head to the Fish Net Station\n\n";
cout<<" 7|设置 set up\n\n";
cout<<" 8|退出 exit\n\n";
cout<<" 9|音乐 music\n\n";
cout<<" 0|游戏 game\n\n";
cout<<" a|制作名单\n\n";
cout<<" b|说明书 xz's book\n\n";
a=getch();
if(a=='1')
{
City();
a=0;
continue;
}
if(a=='b'){
system("cls");
system("start https://docs.qq.com/doc/DYURwT0dEdGtLaGtj?&u=9bdcdc3fa5d042bca5fb1e0abea8c946");
system("pause");
}
if(a=='2')
{
hot();
a=0;
continue;
}
if(a=='3')
{
quest();
a=0;
continue;
}
if(a=='4')
{
v();
a=0;
continue;
}
if(a=='5')
{
game();
a=0;
continue;
}
if(a=='6')
{
web();
a=0;
continue;
}
if(a=='7')
{
system("cls");
cout<<"1.颜色\n";
cout<<"2.用户名\n";
cout<<"3.密码\n";
char c;
c=getch();
if(c=='1')colour();
if(c=='2')administrator();
if(c=='3')cipher();
system("pause");
continue;
}
if(a=='9')
{
music();
system("pause");
continue;
}
if(a=='8')
{
system("cls");
cout<<"再见!欢迎下次使用!";
return 0;
}
if(a=='0')
{
zhong_jian();
continue;
}
if(a=='a')
{
system("cls");
cout<<" 制作:\n\n";
cout<<" 最初/框架制作:吴章鹏";
cout<<endl;
cout<<" 大部分修改体验内容:王梓轩\n" ;
system("pause");
system("cls");
continue;
}
else
{
a=0;
continue;
}
}
return 0;
}
高级启示者
https://www.luogu.com.cn/paste/virma35z
嗯,没有两千行,也就差不多四千把