• 个人简介

    此生无悔入c++,来世还做编程人

    c++启动!!!!!! ! ! ! ! ! ! ! ! ! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    #宇宙说:你所斗争的黑暗就在你心中,你所寻找的光明就在你心中--玄——后室迷

    #世人只会记得第一,而不会记得第二。--玄——后室迷

    #代你见证世界的终结,来世再续梦之伊甸--玄——后室迷

    #找到迷失于黑夜的少女,这便是改写你命运的咒语。--玄——后室迷

    #往昔红颜梦,今朝朦胧泪。--玄——后室迷

    #努力吧!就算再寂寞!也要努力活下去!!!!!!!--玄——后室迷

    --------------是我!分割线😄 !-----------------

    后室全部楼层​介绍​_抖抖音

    后室实体​介绍​#backrooms #胆小慎入#原创#奇闻异事#沉浸式体验- ...

    --------------又是我!分割线😄 !-----------------

    我也是使命召唤手游的迷!!!

    名字:天者鬼游

    在收徒弟!!!!! c++小游戏

    #include<iostream>  
    #include<conio.h>
    #include<windows.h>
    #include<stdlib.h>
    #include<stdio.h>
    #include<time.h>            
    #include<string.h>
    using namespace std;
    int main()
    {
        int ty,o,j,p,n,sh=5,sm=40,dm=0;
        long long jb,bs=0,lj=0,sj=0,emzr=0,hyj=0,jssj=0,pgj=0,szj=0,hjj=0,zspf=0,hy=0,hfhzj=0,bd=1,ylb=1,zd=1,tnt=1;
    	system("color 3F");
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
        FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
        FOREGROUND_BLUE);
        Sleep(400);
        cout<<"请";
        Sleep(400);
        cout<<"输";
        Sleep(400);
        cout<<"入";
        Sleep(400);
        cout<<"你";
        Sleep(400);
        cout<<"的";
        Sleep(400);
        cout<<"幸";
        Sleep(400);
        cout<<"运";  
        Sleep(400);
        cout<<"数";
        Sleep(400);
        cout<<"字"<<endl;  
    	cin>>ty;
        if(ty==41) 
    	{
    		cout<<"你是欧皇!!!!!"<<endl; 
    		cout<<"金币+1000000000000000000000!!!!!"<<endl<<endl; 
    		jb=1000000000000000000000; 
    	}
    	else
    	{
    		cout<<"你~运~气~一~般~般~啊!!!!!"<<endl<<endl;
    		jb=0;
    	}
        Sleep(400);
        cout<<"这";
        Sleep(400);
        cout<<"是";
        Sleep(400);
        cout<<"一";
        Sleep(400);
        cout<<"个";
        Sleep(400);
        cout<<"勇";
        Sleep(400);
        cout<<"者";
        Sleep(400);
        cout<<"的";
        Sleep(400);
        cout<<"世";
        Sleep(400);
        cout<<"界";      
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
        FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
        FOREGROUND_GREEN);
        Sleep(400);
        cout<<"  你";
        Sleep(400);
        cout<<"想";
        Sleep(400);
        cout<<"来";
        Sleep(400);
        cout<<"挑";
        Sleep(400);
        cout<<"战";
        Sleep(400);
        cout<<"一";
        Sleep(400);
        cout<<"下";
        Sleep(400);
        cout<<"吗";
        Sleep(400);
        cout<<"?"<<endl<<"            制作用时:41小时52分\n";
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
        FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
        FOREGROUND_RED);
         Sleep(400);
        cout<<"  确";
        Sleep(400);
        cout<<"认";
        Sleep(400);
        cout<<"输";
        Sleep(400);
        cout<<"入";
        Sleep(400);
        cout<<"1,";
        Sleep(400);
        cout<<"否";
        Sleep(400);
        cout<<"则";
        Sleep(400);
        cout<<"输";
        Sleep(400);
        cout<<"入";
        Sleep(400); 
        cout<<"2"<<endl;         
        cin>>o;   
    	 if(o==2)
    	{   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
            FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
            FOREGROUND_RED);
    		cout<<"你不行啊!\n";
    	}
        if(o==1)
        {
        	 zcd:
        	 for(;;)
        	 {
        	 		 	system("color 3F");
          	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
            FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
            cout<<"                                                                                                      \n";
    	    cout<<"  ----------------*主菜单*----------------                          如果你是新手,请在主菜单输入‘5 ’\n";
    	    cout<<"  |1.移动 2.查看背包 3.回血 4.战斗 5.其他|                          进入其他,在其他里输入数字‘2 ’  \n";
            cout<<"  --------------祝您玩的开心--------------                          进入游戏相关信息,了解游戏规则    \n"; 
            cout<<"                                                                                                      \n";
    	    cin>>o;	
        
        
        
        
        
        
              if(o==1)
            {
            	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
            	goto yd;
           	}
           	
           	
           	
           	  if(o==2)
    		{
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
    		  	goto ckbb;
    		}
    		
    		
    		
    		 if(o==3)
    		{
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
    		  	goto hx;
    		}
    		
    			 if(o==4)
    		{
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
    		  	goto zd;
    		}
    		
    			 if(o==5)
    		{
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
    		  	goto qt;
    		}
    		
    		
             yd:
             			 system("color 3F");
            	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
                cout<<"  -------------*请选择*-------------------------  \n";
    	        cout<<"  |  1.铁匠铺  2.盔甲铺  3.技能店 4.返回主菜单 |  \n";
                cout<<"  -----------祝您玩的开心-----------------------  \n";
    		    cin>>j;
    		    
        
        
        
        
            if(j==1)
            {
            	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
            	goto tjp;
           	}
           	
           	if(j==2)
           	{
           		SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
           		goto kjp;
    		}
    		
    		if(j==3)
    		{
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
    			goto jnd;
    		}
    		
    		if(j==4)
    		{
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
    			goto zcd;
    		}
            
                 tjp:
    			 system("color 3F");
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
                cout<<"  -------------*铁匠铺*-------------------------------------------------------------------------------------  \n";
    	        cout<<"  |  1.匕首(50金币,+2伤害)2.利剑(80金币,+3伤害)3.圣剑(120金币,+5伤害)4.恶魔之刃(200金币,+7伤害) |  \n";
    			cout<<"  |  5.火焰剑(300金币,+10伤害)6.绝世圣剑(500金币,+20伤害) 7.返回主菜单                                 |  \n";
    		    cout<<"  ------------------------------祝您玩的开心----------------------------------------------------------------  \n";
    		    cin>>p;
    		    if(p==1)
              {
                if(jb>=50)
                {
                bs++;jb-=50;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了匕首,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                goto zcd;
                
    	      }
    	       if(p==2)
              {
                if(jb>=80)
                {
                lj++;jb-=80;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了利剑,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==3)
              {
                if(jb>=120)
                {
                sj++;jb-=120;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了圣剑,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==4)
              {
                if(jb>=200)
                {
                emzr++;jb-=200;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了恶魔之刃,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==5)
              {
                if(jb>=300)
                {
                hyj++;jb-=300;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了火焰剑,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==6)
              {
    	
                if(jb>=500)
                {
                jssj++;jb-=500;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了绝世圣剑,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
              }
    	        if(p==7)
    	        {
    	        	goto zcd;
    			}
    	      
    	      
    	      
    	      
    	      
    	         kjp:
    			 system("color 3F");
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
                cout<<"  -------------*盔甲铺*---------------------------------------------------------------------------------------------  \n";
    	        cout<<"  |  1.皮革甲(50金币,+4防御)2.锁子甲(80金币,+6防御)3.黄金甲(120金币,+10防御)4.钻石披风(200金币,+14防御) |  \n";
    			cout<<"  |  5.火焰甲(300金币,+20防御)6.火凤凰之甲(500金币,+40防御) 7.返回主菜单                                       |  \n";
    		    cout<<"  ------------------------------祝您玩的开心------------------------------------------------------------------------  \n";
    		
    		    cin>>p;
    		    if(p==1)
              {
                if(jb>=50)
                {
                pgj++;jb-=50;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了皮革甲,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==2)
              {
                if(jb>=80)
                {
                szj++;jb-=80;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了锁子甲,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==3)
              {
                if(jb>=120)
                {
                hjj++;jb-=120;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了黄金甲,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==4)
              {
                if(jb>=200)
                {
                zspf++;jb-=200;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了钻石披风,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==5)
              {
                if(jb>=300)
                {
                hy++;jb-=300;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了火焰甲,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==6)
              {
                if(jb>=500)
                {
                hfhzj++;jb-=500;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了火凤凰之甲,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	      if(p==7)
    	      {
    	      	goto zcd;
    		  }
    	    
    	    
    	    
    	    
    	    
    	         jnd:
    			 system("color 3F");
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
                cout<<"  -------------*技能店*------------------------  \n";
    	        cout<<"  |1.绷带 2.医疗包 3.炸弹 4.手雷 5.返回主菜单 |  \n";
    	        cout<<"  |150金币 250金币 200金币 300金币            |  \n";
                cout<<"  -----------祝您玩的开心----------------------  \n";
    	        cin>>p;
    		    if(p==1)
              {
                if(jb>=150)
                {
                bd++;jb-=150;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了绷带,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==2)
              {
                if(jb>=250)
                {
                ylb++;jb-=250;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了医疗包,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==3)
              {
                if(jb>=200)
                {
                zd++;jb-=200;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了炸弹,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                Sleep(800);
                 goto zcd;
                 
    	      }
    	       if(p==4)
              {
                if(jb>=300)
                {
                tnt++;jb-=300;
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"您购买了手雷,您现在有"<<jb<<"金币\n";
                }
                else
                {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
                cout<<"您没有足够的金币\n";
                }
                 Sleep(800);
                 goto zcd;
                 
    	      }
    	      if(p==5)
    	      {
    	      	  goto zcd;
    		  }
    		  
    		  
    		  
    		  
    		  
    		 
    		  
    		  
    		  ckbb:
    	      system("color 3F");
    	      SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
              FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
              FOREGROUND_BLUE);
               Sleep(100);
              cout<<"  ----------背包---------\n";
               Sleep(100);
              cout<<"  您有"<<jb<<"个金币  \n\n"; 
               Sleep(100);
              cout<<"  您有"<<sh<<"伤害(包括武器)  \n";
    		   Sleep(100);
    		  cout<<"  您有"<<sm<<"血量(包括防具)  \n\n";
    		  
               Sleep(100);
              cout<<"  您有"<<bs<<"个匕首(输入1装备,+2伤害)  \n";
               Sleep(100);                               
              cout<<"  您有"<<lj<<"个利剑(输入2装备,+3伤害)  \n"; 
               Sleep(100);                               
              cout<<"  您有"<<sj<<"个圣剑(输入3装备,+5伤害)  \n";
               Sleep(100);
              cout<<"  您有"<<emzr<<"个恶魔之刃(输入4装备,+7伤害)  \n";
               Sleep(100);
              cout<<"  您有"<<hyj<<"个火焰剑(输入5装备,+10伤害)  \n";
               Sleep(100);
              cout<<"  您有"<<jssj<<"个绝世圣剑(输入6装备,+20伤害)  \n\n";
              
               Sleep(100);
              cout<<"  您有"<<pgj<<"个皮革甲(输入7装备,+4防御)  \n"; 
               Sleep(100);
              cout<<"  您有"<<szj<<"个锁子甲(输入8装备,+6防御)  \n";
               Sleep(100);
              cout<<"  您有"<<hjj<<"个黄金甲(输入9装备,+10防御)  \n";
               Sleep(100);
              cout<<"  您有"<<zspf<<"个钻石披风(输入10装备,+14防御)  \n";
               Sleep(100);
              cout<<"  您有"<<hy<<"个火焰甲(输入11装备,+20防御)  \n";
               Sleep(100);
              cout<<"  您有"<<hfhzj<<"个火凤凰之甲(输入12装备,+40防御)  \n\n";
    		
               Sleep(100);
              cout<<"  您有"<<bd<<"个绷带(回复5血)  \n";
               Sleep(100);
              cout<<"  您有"<<ylb<<"个医疗包(回复10滴血)  \n";
               Sleep(100);
              cout<<"  您有"<<zd<<"个炸弹(造成8伤害)  \n";
               Sleep(100);
              cout<<"  您有"<<tnt<<"个手雷(造成15伤害)  \n\n";
              Sleep(100);
              cout<<"输入13,返回主菜单\n";
              system("color 3F");
              cin>>j;
              if(j==1)
              {
              	if(bs>=1)
              	{
              	sh=7;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n";
    			 Sleep(800);
    			goto zcd;
    		  }
              }
        
    			
    			  if(j==2)
              {
              	if(lj>=1)
              	{
              	sh=8;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
            
    		
    			
    			  if(j==3)
              {
              	if(sj>=1)
              	{
              	sh=10;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
            
    		
    			
    			  if(j==4)
              {
              	if(emzr>=1)
              	{
              	sh=12;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
            
    		
    			
    			  if(j==5)
              {
              	if(hyj>=1)
              	{
              	sh=15;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n";
    			 Sleep(800);
    			goto zcd;
    		  }
              }
            
    	
    			
    			  if(j==6)
              {
              	if(jssj>=1)
              	{
              	sh=25;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
            
    			
    			  if(j==7)
              {
              	if(pgj>=1)
              	{
              	sm=44;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
            
    		
    			
    			  if(j==8)
              {
              	if(szj>=1)
              	{
              	sm=46;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
            
    		
    			
    			  if(j==9)
              {
              	if(hjj>=1)
              	{
              	sm=50;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
            
    		
    			
    			  if(j==10)
              {
              	if(zspf>=1)
              	{
              	sm=54;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
            
    		
    			  if(j==11)
              {
              	if(hy>=1)
              	{
              	sm=60;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
            
    			
    			  if(j==12)
              {
              	if(hfhzj>=1)
              	{
              	sm=80;
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
              	cout<<"  正在装备中,请稍等...\n";
    			Sleep(1200); 
    			cout<<"  装备成功\n\n";
    			Sleep(800);
    			goto zcd;
    			}
    			else 
              {
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
    			cout<<"武器或装备数量小于1,装备失败\n"; 
    			Sleep(800);
    			goto zcd;
    		  }
              }
              
              if(j==13)
              {
              		SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
    		  	goto zcd;
    		  }
    		  
    		  
    		  
    		  
    		  
    		  hx:
    		  system("color 3F");
              SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
              FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
              FOREGROUND_GREEN);
               Sleep(400);
              cout<<"  ---------------介绍---------------  \n";
               Sleep(400);
              cout<<"  每次战斗后血量不会重置会一直保持,\n";
    		   Sleep(400);
              cout<<"  如果不回血的话一直战斗有可能会死,\n";
    			Sleep(400);
              cout<<"  死了掉落所有金币和所有武器和装备,\n";
               Sleep(400);
              cout<<"  以防万一您务必要花金币回血150金币,\n";
               Sleep(400);
              cout<<"  回完血后盔甲会自动掉落,请你重新装备盔甲\n";
               Sleep(400);
              cout<<"  请选择\n1.回满血  2.返回主菜单\n";
              cin>>j;
              
              if(j==1)
              {
              	if(jb>=150)
              	{
              	jb-=150;
              	system("color 3F");
              	sm=40;
              	Sleep(1000);
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
              	cout<<"正在回血中\n";
              	
    			Sleep(1000);
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
              	cout<<"  1  \n"; 
    			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
              	Sleep(1000);
              	cout<<"  2  \n";
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_RED|BACKGROUND_GREEN);
              	Sleep(1000);
              	cout<<"  3  \n";
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_RED|BACKGROUND_RED);
              	Sleep(1000);
              	cout<<"  4  \n";
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_RED|BACKGROUND_BLUE);
              	Sleep(1000);
              	cout<<"  5  \n";
              	
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_RED|BACKGROUND_BLUE);
              	Sleep(1000);
              	cout<<"回血完毕\n";
              	Sleep(500);
              	goto zcd;
              
    			}
              	else
              	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                FOREGROUND_RED);
              	cout<<"金币不足,不能回血\n\n";
              	Sleep(700);
              	goto zcd;
    		  }
    		  
    		  if(j==2)
    		  {
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                cout<<"\n电脑正在拼命加载中...\n\n\n";
                Sleep(1000);
            	goto zcd;
    		  }
              
              
              
              
            
              zd:
              system("color 3F");
    	      SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
              FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
              FOREGROUND_BLUE);	
              cout<<"                     战斗                      "<<endl;	
              cout<<"   1.大狼 2.野蛮人 3.史莱姆 4.巨人 5.森林巨人  "<<endl;	
              cout<<"   6.森林巨人王 7.深海巨龙 8.九头大蛇 9.三头龙 "<<endl;	
              cout<<"   注意:数字越大,越难打!!!               "<<endl;
    		  cout<<"   ---请你输入"<<endl;
    		  cin>>j;
    		  
    		  if(j==1)		  
    		  {
    		    dm=10;
    		  	for(;;)
    		  	{
    		  		
    		  	system("color 3F");
    		  	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
    		  	cout<<"战斗开始,大狼\n";
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
    		  	cout<<"1.攻击 2.使用技能\n";
    		  	cin>>p;
    		  	
    		  	if(p==1)
    		  	{
    		  	   dm-=sh;
    			   sm-=3;
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
    			   cout<<"正在打斗中,请稍等...\n";
    			    Sleep(1500);
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_BLUE);
    			   cout<<"敌方对你造成了3点伤害\n";
    			   cout<<"我方生命值"<<sm<<"\n";
    			   Sleep(300);
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
    			   cout<<"你对敌方造成了"<<sh<<"点伤害\n";
    			   cout<<"敌方生命值"<<dm<<"\n";
    		}
    			if(p==2)
    			{
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
                   cout<<"1.绷带 2.医疗包 3.炸弹 (在第一关禁止使用手雷)\n";
                   cin>>n;
                   
                   if(n==1)
                   {
                          if(bd>=1)
                          {
                          sm+=5;
                          bd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了绷带,加了5血\n";
    					  }
    			   }
    			   
    			     if(n==2)
                   {
                          if(ylb>=1)
                          {
                          sm+=10;
                          ylb--;		  
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了医疗包,加了10血\n";
    					  }
                   	
    			   }
    			   
    			     if(n==3)
                   {
                          if(zd>=1)
                          {
                          	  dm-=8;
                   		  zd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了炸弹,造成8伤害\n";
    					  }
                   		
    			   }
    			   
    			   
    			}
    			   Sleep(1000);
    			   if(sm<=0)
    			   {
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你被敌方击败了,不幸牺牲\n“你的装备,武器和金币我就偷走了,哈哈哈~~~”死神说\n";
                    jb=0;
                    sm=40;
                    sh=5;
                    bs=0;
                    lj=0;
                    sj=0;
                    emzr=0;
                    hyj=0;
                    jssj=0;
                    pgj=0;
                    szj=0;
                    hjj=0;
                    zspf=0;
                    hy=0;
                    hfhzj=0;
                    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    			   
    			   if(dm<=0)
    			   {
    			   	jb+=20;
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你击败了敌方获得了20金币\n";
    				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    	     	}
    			}
    		   
    
              if(j==2)		  
    		  {
    		    dm=13;
    		  	for(;;)
    		  	{
    		  		
    		  	system("color 3F");
    		  	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
    		  	cout<<"战斗开始,野蛮人\n";
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
    		  	cout<<"1.攻击 2.使用技能\n";
    		  	cin>>p;
    		  	
    		  	if(p==1)
    		  	{
    		  	   dm-=sh;
    			   sm-=4;
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
    			   cout<<"正在打斗中,请稍等...\n";
    			    Sleep(1500);
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_BLUE);
    			   cout<<"敌方对你造成了4点伤害\n";
    			   cout<<"我方生命值"<<sm<<"\n";
    			   Sleep(300);
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
    			   cout<<"你对敌方造成了"<<sh<<"点伤害\n";
    			   cout<<"敌方生命值"<<dm<<"\n";
    		}
    			if(p==2)
    			{
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
                   cout<<"1.绷带 2.医疗包 3.炸弹 (在第二关禁止使用手雷)\n";
                   cin>>n;
                   
                   if(n==1)
                   {
                 if(bd>=1)
                          {
                          sm+=5;
                          bd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了绷带,加了5血\n";
    					  }
    			   }
    			   
    			     if(n==2)
                   {
                   
                   	    if(ylb>=1)
                          {
                          sm+=10;
                          ylb--;		  
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了医疗包,加了10血\n";
    					  }
    			   }
    			   
    			     if(n==3)
                   {
                   
                   	  if(zd>=1)
                          {
                          	  dm-=8;
                   		  zd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了炸弹,造成8伤害\n";
    					  }
    			   }
    			   
    		
    			}
    			   Sleep(1000);
    			   if(sm<=0)
    			   {
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你被敌方击败了,不幸牺牲\n“你的装备,武器和金币我就偷走了,哈哈哈~~~”死神说\n";
                    jb=0;
                    sm=40;
                    sh=5;
                    bs=0;
                    lj=0;
                    sj=0;
                    emzr=0;
                    hyj=0;
                    jssj=0;
                    pgj=0;
                    szj=0;
                    hjj=0;
                    zspf=0;
                    hy=0;
                    hfhzj=0;
                    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    			   
    			   if(dm<=0)
    			   {
    			   	jb+=30;
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你击败了敌方获得了30金币\n";
    				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    	     	}
    			}
    		  
    		  
    		  
    		    if(j==3)		  
    		  {
    		    dm=16;
    		  	for(;;)
    		  	{
    		  		
    		  	system("color 3F");
    		  	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
    		  	cout<<"战斗开始,史莱姆\n";
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
    		  	cout<<"1.攻击 2.使用技能\n";
    		  	cin>>p;
    		  	
    		  	if(p==1)
    		  	{
    		  	   dm-=sh;
    			   sm-=6;
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
    			   cout<<"正在打斗中,请稍等...\n";
    			    Sleep(1500);
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_BLUE);
    			   cout<<"敌方对你造成了6点伤害\n";
    			   cout<<"我方生命值"<<sm<<"\n";
    			   Sleep(300);
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
    			   cout<<"你对敌方造成了"<<sh<<"点伤害\n";
    			   cout<<"敌方生命值"<<dm<<"\n";
    		}
    			if(p==2)
    			{
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
                   cout<<"1.绷带 2.医疗包 3.炸弹 4.手雷\n";
                   cin>>n;
                   
                   if(n==1)
                   {
                   
                   		 if(bd>=1)
                          {
                          sm+=5;
                          bd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了绷带,加了5血\n";
    					  }
    			   }
    			   
    			     if(n==2)
                   {
                       if(ylb>=1)
                          {
                          sm+=10;
                          ylb--;		  
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了医疗包,加了10血\n";
    					  }
    			   }
    			   
    			     if(n==3)
                   {
                   
                   		  if(zd>=1)
                          {
                          	  dm-=8;
                   		  zd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了炸弹,造成8伤害\n";
    					  }
    			   }
    			   
    			     if(n==4)
                   {
                          if(tnt>=1)
                          {
                          dm-=15;
                   		  tnt--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了手雷,造成15伤害\n";
    					  }
                   		 
    			   }
    			}
    			   Sleep(1000);
    			   if(sm<=0)
    			   {
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你被敌方击败了,不幸牺牲\n“你的装备,武器和金币我就偷走了,哈哈哈~~~”死神说\n";
                    jb=0;
                    sm=40;
                    sh=5;
                    bs=0;
                    lj=0;
                    sj=0;
                    emzr=0;
                    hyj=0;
                    jssj=0;
                    pgj=0;
                    szj=0;
                    hjj=0;
                    zspf=0;
                    hy=0;
                    hfhzj=0;
                    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    			   
    			   if(dm<=0)
    			   {
    			   	jb+=40;
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你击败了敌方获得了40金币\n";
    				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    	     	}
    			}
    		   
            
    		  
    		  
    		    if(j==4)	  
    		  {
    		    dm=21;
    		  	for(;;)
    		  	{
    		  		
    		  	system("color 3F");
    		  	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
    		  	cout<<"战斗开始,巨人\n";
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
    		  	cout<<"1.攻击 2.使用技能\n";
    		  	cin>>p;
    		  	
    		  	if(p==1)
    		  	{
    		  	   dm-=sh;
    			   sm-=8;
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
    			   cout<<"正在打斗中,请稍等...\n";
    			    Sleep(1500);
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_BLUE);
    			   cout<<"敌方对你造成了8点伤害\n";
    			   cout<<"我方生命值"<<sm<<"\n";
    			   Sleep(300);
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
    			   cout<<"你对敌方造成了"<<sh<<"点伤害\n";
    			   cout<<"敌方生命值"<<dm<<"\n";
    		}
    			if(p==2)
    			{
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
                   cout<<"1.绷带 2.医疗包 3.炸弹 4.手雷\n";
                   cin>>n;
                   
                   if(n==1)
                   {
                   
               if(bd>=1)
                          {
                          sm+=5;
                          bd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了绷带,加了5血\n";
    					  }
    			   }
    			   
    			     if(n==2)
                   {
                   
                   		    if(ylb>=1)
                          {
                          sm+=10;
                          ylb--;		  
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了医疗包,加了10血\n";
    					  }
    			   }
    			   
    			     if(n==3)
                   {
                   
                   		   if(zd>=1)
                          {
                          	  dm-=8;
                   		  zd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了炸弹,造成8伤害\n";
    					  }
    			   }
    			   
    			     if(n==4)
                   {
                   
                   	  if(tnt>=1)
                          {
                          dm-=15;
                   		  tnt--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了手雷,造成15伤害\n";
    					  }
    			   }
    			}
    			   Sleep(1000);
    			   if(sm<=0)
    			   {
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你被敌方击败了,不幸牺牲\n“你的装备,武器和金币我就偷走了,哈哈哈~~~”死神说\n";
                    jb=0;
                    sm=40;
                    sh=5;
                    bs=0;
                    lj=0;
                    sj=0;
                    emzr=0;
                    hyj=0;
                    jssj=0;
                    pgj=0;
                    szj=0;
                    hjj=0;
                    zspf=0;
                    hy=0;
                    hfhzj=0;
                    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    			   
    			   if(dm<=0)
    			   {
    			   	jb+=50;
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你击败了敌方获得了50金币\n";
    				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    	     	}
    			}
    		   
    		  
    		  
    		    if(j==5)		  
    		  {
    		    dm=24;
    		  	for(;;)
    		  	{
    		  		
    		  	system("color 3F");
    		  	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
    		  	cout<<"战斗开始,森林巨人\n";
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
    		  	cout<<"1.攻击 2.使用技能\n";
    		  	cin>>p;
    		  	
    		  	if(p==1)
    		  	{
    		  	   dm-=sh;
    			   sm-=9;
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
    			   cout<<"正在打斗中,请稍等...\n";
    			    Sleep(1500);
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_BLUE);
    			   cout<<"敌方对你造成了9点伤害\n";
    			   cout<<"我方生命值"<<sm<<"\n";
    			   Sleep(300);
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
    			   cout<<"你对敌方造成了"<<sh<<"点伤害\n";
    			   cout<<"敌方生命值"<<dm<<"\n";
    			   } 
    			if(p==2)
    			{
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
                   cout<<"1.绷带 2.医疗包 3.炸弹 4.手雷\n";
                   cin>>n;
                   
                   if(n==1)
                   {
                   
                    if(bd>=1)
                          {
                          sm+=5;
                          bd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了绷带,加了5血\n";
    					  }
    			   }
    			   
    			     if(n==2)
                   {
                   
                   	    if(ylb>=1)
                          {
                          sm+=10;
                          ylb--;		  
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了医疗包,加了10血\n";
    					  }
    			   }
    			   
    			     if(n==3)
                   {
                   
                   	  if(zd>=1)
                          {
                          dm-=8;
                   		  zd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了炸弹,造成15伤害\n";
    					  }
    			   }
    			   
    			     if(n==4)
                   {
                          
                   		   if(tnt>=1)
                          {
                          dm-=15;
                   		  tnt--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了手雷,造成15伤害\n";
    					  }
    			   }
    			}
    			   Sleep(1000);
    			   if(sm<=0)
    			   {
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你被敌方击败了,不幸牺牲\n“你的装备,武器和金币我就偷走了,哈哈哈~~~”死神说\n";
                    jb=0;
                    sm=40;
                    sh=5;
                    bs=0;
                    lj=0;
                    sj=0;
                    emzr=0;
                    hyj=0;
                    jssj=0;
                    pgj=0;
                    szj=0;
                    hjj=0;
                    zspf=0;
                    hy=0;
                    hfhzj=0;
                    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    			   
    			   if(dm<=0)
    			   {
    			   	jb+=60;
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你击败了敌方获得了60金币\n";
    				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    	     	}
    			}
    		  
    		  
    		    if(j==6)		  
    		  {
    		    dm=30;
    		  	for(;;)
    		  	{
    		  		
    		  	system("color 3F");
    		  	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
    		  	cout<<"战斗开始,森林巨人王\n";
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
    		  	cout<<"1.攻击 2.使用技能\n";
    		  	cin>>p;
    		  	
    		  	if(p==1)
    		  	{
    		  	   dm-=sh;
    			   sm-=20;
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
    			   cout<<"正在打斗中,请稍等...\n";
    			    Sleep(1500);
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_BLUE);
    			   cout<<"敌方对你造成了20点伤害\n";
    			   cout<<"我方生命值"<<sm<<"\n";
    			   Sleep(300);
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
    			   cout<<"你对敌方造成了"<<sh<<"点伤害\n";
    			   cout<<"敌方生命值"<<dm<<"\n";
    			    
    			if(p==2)
    			{
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
                   cout<<"1.绷带 2.医疗包 3.炸弹 4.手雷\n";
                   cin>>n;
                   
                   if(n==1)
                   {
                   
                   	 if(bd>=1)
                          {
                          sm+=5;
                          bd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了绷带,加了5血\n";
    					  }
    			   }
    			   
    			     if(n==2)
                   {
                   
                   	    if(ylb>=1)
                          {
                          sm+=10;
                          ylb--;		  
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了医疗包,加了10血\n";
    					  }
    			   }
    			   
    			     if(n==3)
                   {
                   
                   	  if(zd>=1)
                          {
                          	  dm-=8;
                   		  zd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了炸弹,造成8伤害\n";
    					  }
    			   }
    			   
    			     if(n==4)
                   {
                   
                   	  if(tnt>=1)
                          {
                          dm-=15;
                   		  tnt--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了手雷,造成15伤害\n";
    					  }
    			   }
    			}
    			   Sleep(1000);
    			   if(sm<=0)
    			   {
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你被敌方击败了,不幸牺牲\n“你的装备,武器和金币我就偷走了,哈哈哈~~~”死神说\n";
                    jb=0;
                    sm=40;
                    sh=5;
                    bs=0;
                    lj=0;
                    sj=0;
                    emzr=0;
                    hyj=0;
                    jssj=0;
                    pgj=0;
                    szj=0;
                    hjj=0;
                    zspf=0;
                    hy=0;
                    hfhzj=0;
                    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    			   
    			   if(dm<=0)
    			   {
    			   	jb+=70;
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你击败了敌方获得了70金币\n";
    				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    	     	}
    			}
    		  } 
    		   
    		     if(j==7)		  
    		  {
    		    dm=41;
    		  	for(;;)
    		  	{
    		  		
    		  	system("color 3F");
    		  	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
    		  	cout<<"战斗开始,深海巨龙\n";
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
    		  	cout<<"1.攻击 2.使用技能\n";
    		  	cin>>p;
    		  	
    		  	if(p==1)
    		  	{
    		  	   dm-=sh;
    			   sm-=31;
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
    			   cout<<"正在打斗中,请稍等...\n";
    			    Sleep(1500);
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_BLUE);
    			   cout<<"敌方对你造成了31点伤害\n";
    			   cout<<"我方生命值"<<sm<<"\n";
    			   Sleep(300);
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
    			   cout<<"你对敌方造成了"<<sh<<"点伤害\n";
    			   cout<<"敌方生命值"<<dm<<"\n";
    			   } 
    			if(p==2)
    			{
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
                   cout<<"1.绷带 2.医疗包 3.炸弹 4.手雷\n";
                   cin>>n;
                   
                   if(n==1)
                   {
                   
                   	 if(bd>=1)
                          {
                          sm+=5;
                          bd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了绷带,加了5血\n";
    					  }
    			   }
    			   
    			     if(n==2)
                   {
                   
                   	    if(ylb>=1)
                          {
                          sm+=10;
                          ylb--;		  
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了医疗包,加了10血\n";
    					  }
    			   }
    			   
    			     if(n==3)
                   {
                   
                   		  if(zd>=1)
                          {
                          	  dm-=8;
                   		  zd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了炸弹,造成8伤害\n";
    					  }
    			   }
    			   
    			     if(n==4)
                   {
                   
                   	  if(tnt>=1)
                          {
                          dm-=15;
                   		  tnt--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了手雷,造成15伤害\n";
    					  }
    			   }
    			}
    			   Sleep(1000);
    			   if(sm<=0)
    			   {
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你被敌方击败了,不幸牺牲\n“你的装备,武器和金币我就偷走了,哈哈哈~~~”死神说\n";
                    jb=0;
                    sm=40;
                    sh=5;
                    bs=0;
                    lj=0;
                    sj=0;
                    emzr=0;
                    hyj=0;
                    jssj=0;
                    pgj=0;
                    szj=0;
                    hjj=0;
                    zspf=0;
                    hy=0;
                    hfhzj=0;
                    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    			   
    			   if(dm<=0)
    			   {
    			   	jb+=100;
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你击败了敌方获得了100金币\n";
    				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    	     	}
    			}
    		   
    		   
    		     if(j==8)		  
    		  {
    		    dm=80;
    		  	for(;;)
    		  	{
    		  		
    		  	system("color 3F");
    		  	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
    		  	cout<<"战斗开始,九头大蛇\n";
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
    		  	cout<<"1.攻击 2.使用技能\n";
    		  	cin>>p;
    		  	
    		  	if(p==1)
    		  	{
    		  	   dm-=sh;
    			   sm-=35;
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
    			   cout<<"正在打斗中,请稍等...\n";
    			    Sleep(1500);
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_BLUE);
    			   cout<<"敌方对你造成了35点伤害\n";
    			   cout<<"我方生命值"<<sm<<"\n";
    			   Sleep(300);
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
    			   cout<<"你对敌方造成了"<<sh<<"点伤害\n";
    			   cout<<"敌方生命值"<<dm<<"\n";
    			   } 
    			if(p==2)
    			{
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
                   cout<<"1.绷带 2.医疗包 3.炸弹 4.手雷\n";
                   cin>>n;
                   
                   if(n==1)
                   {
                   
                   	 if(bd>=1)
                          {
                          sm+=5;
                          bd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了绷带,加了5血\n";
    					  }
    			   }
    			   
    			     if(n==2)
                   {
                   
                   	    if(ylb>=1)
                          {
                          sm+=10;
                          ylb--;		  
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了医疗包,加了10血\n";
    					  }
    			   }
    			   
    			     if(n==3)
                   {
                   
                   		   if(zd>=1)
                          {
                          	  dm-=8;
                   		  zd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了炸弹,造成8伤害\n";
    					  }
    			   }
    			   
    			     if(n==4)
                   {
                   
                   		  if(tnt>=1)
                          {
                          dm-=15;
                   		  tnt--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了手雷,造成15伤害\n";
    					  }
    			   }
    			}
    			   Sleep(1000);
    			   if(sm<=0)
    			   {
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你被敌方击败了,不幸牺牲\n“你的装备,武器和金币我就偷走了,哈哈哈~~~”死神说\n";
                    jb=0;
                    sm=40;
                    sh=5;
                    bs=0;
                    lj=0;
                    sj=0;
                    emzr=0;
                    hyj=0;
                    jssj=0;
                    pgj=0;
                    szj=0;
                    hjj=0;
                    zspf=0;
                    hy=0;
                    hfhzj=0;
                    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    			   
    			   if(dm<=0)
    			   {
    			   	jb+=110;
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"你击败了敌方获得了110金币\n";
    				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    	     	}
    			}
    		   
    		   
    		     if(j==9)		  
    		  {
    		    dm=200;
    		  	for(;;)
    		  	{
    		  		
    		  	system("color 3F");
    		  	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_GREEN);
    		  	cout<<"战斗开始,三头龙\n";
    		  	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                FOREGROUND_BLUE);
    		  	cout<<"1.攻击 2.使用技能\n";
    		  	cin>>p;
    		  	
    		  	if(p==1)
    		  	{
    		  	   dm-=sh;
    			   sm-=40;
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
    			   cout<<"正在打斗中,请稍等...\n";
    			    Sleep(1500);
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_BLUE);
    			   cout<<"敌方对你造成了40点伤害\n";
    			   cout<<"我方生命值"<<sm<<"\n";
    			   Sleep(300);
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
    			   cout<<"你对敌方造成了"<<sh<<"点伤害\n";
    			   cout<<"敌方生命值"<<dm<<"\n";
    			   } 
    			if(p==2)
    			{
    			   SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                   FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                   FOREGROUND_GREEN);
                   cout<<"1.绷带 2.医疗包 3.炸弹 4.手雷\n";
                   cin>>n;
                   
                   if(n==1)
                   {
                   
                   	 if(bd>=1)
                          {
                          sm+=5;
                          bd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了绷带,加了5血\n";
    					  }
    			   }
    			   
    			     if(n==2)
                   {
                   
                   	    if(ylb>=1)
                          {
                          sm+=10;
                          ylb--;		  
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了医疗包,加了10血\n";
    					  }
    			   }
    			   
    			     if(n==3)
                   {
                   
                   	  if(zd>=1)
                          {
                          	  dm-=8;
                   		  zd--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了炸弹,造成8伤害\n";
    					  }
    			   }
    			   
    			     if(n==4)
                   {
                   
                   	  if(tnt>=1)
                          {
                          dm-=15;
                   		  tnt--;
                   		  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
                          cout<<"你使用了手雷,造成15伤害\n";
    					  }
    			   }
    			}
    			   Sleep(1000);
    			   if(sm<=0)
    			   {
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"“呵呵,不自量力的小鬼“\n”去死吧!!!”\n";
                    jb=0;
                    sm=40;
                    sh=5;
                    bs=0;
                    lj=0;
                    sj=0;
                    emzr=0;
                    hyj=0;
                    jssj=0;
                    pgj=0;
                    szj=0;
                    hjj=0;
                    zspf=0;
                    hy=0;
                    hfhzj=0;
                    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    cout<<"\n电脑正在拼命加载中...\n\n\n";
                    Sleep(1000);
                    goto zcd;
    			   }
    			   
    			   if(dm<=0)
    			   {
    			   	jb+=120;
    			   	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                    FOREGROUND_RED);
                    cout<<"“不,不!!!我是不朽的!!!” “正义会得到伸张!” 你击败了三头龙\n从此,世界恢复了和平。(彩蛋)\n";
    				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                    system("pause"); 
                    return 1;
    			   }
    	     	}
    		}
    
    
    
    
    
                    qt:
                    system("color 3F");
    		  	    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                    FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                    FOREGROUND_GREEN);
                    cout<<"  --------------------*其他*--------------------  \n";
    	            cout<<"  | 1.清除屏幕上所有类容  2.游戏相关信息       |  \n";
    	            cout<<"  | 3.返回主菜单                               |  \n";
                    cout<<"  -----------------祝您玩的开心-----------------  \n";
                    cin>>j;
                    
                    
                    
                    
                    
                    if(j==1)
                    {
                    	system("color 3F");
                    	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                        FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                        cout<<"\n\n\n           正在清除           \n\n";
                         Sleep(1000);
                        cout<<"           5           \n";
                         Sleep(1000);
                        cout<<"           4           \n"; 
                         Sleep(1000);
                        cout<<"           3           \n";  
                         Sleep(1000);
                        cout<<"           2           \n";
                         Sleep(1000);
                        cout<<"           1           \n";  
                         Sleep(1000);
                        cout<<"           已清除\n";   
                    	system("cls");
                    	goto zcd;
    				}
    				
    					
    				if(j==2)
    				{
    					  system("color 3F");
    			          SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                          FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
                          FOREGROUND_GREEN);
    					  cout<<"--------------------制作相关信息--------------------\n";
    					  Sleep(300);
    					  cout<<"                   制作者:---li,玄,天者---                   \n";
    					  Sleep(300);
    					  cout<<"                  制作时间:41小时52分                 \n";
    					  Sleep(300);
    					  cout<<"         制作日期:2023年5月6日-2023年5月8日        \n";
    					  Sleep(300);
    					  cout<<"                       禁止侵权                     \n";
    					  Sleep(300);
    					  cout<<"                 联系电话1:157xxxxxxxx             \n";
    					  Sleep(300);
    					  cout<<"                     联系电话2:110                   \n";
    					  Sleep(300);
    					  cout<<"\n--------------------游戏相关信息--------------------\n";
    					  Sleep(300);
    					  cout<<"                     由于作者赖                     \n";
    					  Sleep(300);
    					  cout<<"      在战斗中使用技能,如果技能不够就会重新显示    \n";
    					  Sleep(300);
    					  cout<<"                 “1.攻击 2.使用技能”              \n";
    					  Sleep(300);
    					  cout<<"                  并不会显示数量不够                \n";
    					  Sleep(300);
    					  cout<<"       在查看背包里也可以查看金币和伤害和血量哦     \n";
    					  Sleep(300);
    					  cout<<"       为了真实,战斗前不会显示敌人的生命和伤害     \n";
    					  Sleep(300);
    					  cout<<"                 只有自己试了才知道哦               \n";
    					  Sleep(300);
    					  cout<<"         经过多次战斗,不要怕金币损失,而不回血     \n";
    					  Sleep(300);
    					  cout<<"        如果死了,会掉落所有物品,到时候别伤心哦    \n";
    					  Sleep(300);
    					  cout<<"        在战斗时,绷带和医疗包,不仅可以恢复血量    \n";
    					  Sleep(300);
    					  cout<<"      还可以加血比如说,你有40血,使用绷带会加5滴血 \n";
    					  Sleep(300);
    					  cout<<"               就会突破上限值,变成45滴血           \n";
    					  Sleep(300);
    					  cout<<"                利用这个bug奋击你的敌人吧           \n";
    					  Sleep(300);
    					  cout<<"                战斗时一定要随时关注血量哦          \n";
    					  Sleep(300);
    					  cout<<"                   战斗胜利了,不要骄傲             \n";
    					  Sleep(300);
    					  cout<<"                   一定按时查看血量哦               \n";
    					  Sleep(300);
    					  cout<<"               战败了,所有东西没了,也不要失望     \n";
    					  Sleep(300);
    					  cout<<"                    重整旗鼓,再来一局吧            \n";
    					  Sleep(300);
    					  cout<<"  由于游戏没有存档记录,关闭程序,存档记录就会消失哦\n";
    					  Sleep(300);
    					  cout<<"        只要打败最终BOSS三头龙,就算游戏通关了哦! \n";
    					  Sleep(300);
    					  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |
                          FOREGROUND_RED);
    				      system("pause"); 
    				      goto zcd;
    				}				
    				if(j==3)
    				{
    						SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
                            FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
                            cout<<"\n电脑正在拼命加载中...\n\n\n";
                            Sleep(1000);
            	            goto zcd;
    				}
        	 }
    	}   
    	return 0;	
    }
    
    
  • 通过的题目

  • 最近活动

  • 最近编写的题解

    This person is lazy and didn't write any solutions.
  • Stat

  • Rating

题目标签

系统测试
1
字符串
1
字典树
1