帮我找一下错误!
  • 板块灌水区
  • 楼主王子逸
  • 当前回复18
  • 已保存回复18
  • 发布时间2021/5/31 19:51
  • 上次更新2023/11/4 22:27:12
查看原帖
帮我找一下错误!
513314
王子逸楼主2021/5/31 19:51

#include<windows.h>
#include<assert.h>
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<iostream>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<stdint.h>
#include<tgmath.h>
#include<assert.h>
#define CLS SetPos(1000,1000) 
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<iostream>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<conio.h>
#include <winable.h> 
#pragma GCC optimize(2)
using namespace std;
int yg,rr,gl,alg;//鱼干、肉肉、狗粮、奥利给 
bool sfy;//是否有宠物 
string cwm;//宠物名 
int cwhgd;//好感度上限 
int hgd;//好感度. 
int ccfj=1;//额外金币获取;
bool sjm;//神秘猫buff 
void cls(){    
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    COORD coordScreen = { 0, 0 };    // home for the cursor
    SetConsoleCursorPosition( hConsole, coordScreen );
}
void HideCursor(){
	HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO CursorInfo;
	GetConsoleCursorInfo(handle, &CursorInfo);//获取控制台光标信息
	CursorInfo.bVisible = false; //隐藏控制台光标
	SetConsoleCursorInfo(handle, &CursorInfo);//设置控制台光标状态
}
void console()
{
    HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);  
    CONSOLE_SCREEN_BUFFER_INFO bInfo; 
    GetConsoleScreenBufferInfo(hOut, &bInfo );  
    SetConsoleTitle("行走·重启未来"); // 设置窗口的标题
    COORD size = {110, 30};//设置窗口大小
    SetConsoleScreenBufferSize(hOut,size);  
    SMALL_RECT rc = {0,0, 110, 30};
    SetConsoleWindowInfo(hOut,true ,&rc);
}
double xuxx;
string dhy;
int shj=0; 
int dlxui=100;
int mpf;
int du=0; 
int  z=0; 
bool jih=0;
char sr;
int tl=100;
HANDLE hOut;
string cheng;
int xuxxel=100,xuxxels=100;//故事模式血量和血量上限 
int gok=20;//故事模式攻击 
int gq=0;//故事模式金币 
int fw[10];//攻击范围 
int zl;
struct st{
	string pi[41];
	int jl;
}pf;
struct ld{
	int rw;
	int sh;
	int hp;
	string zy; 
}p[10];
string name;
bool zy=0;
long long qi=100;
string ren="GD";
int jjt[36][36]={{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,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,0},//26
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//27
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//28
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//29
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//30
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,7,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//31
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//32
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//33
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//34
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};//35
				//   0 1 2 3 4 5 6 7 8 9 1011121314151617181920212223242526272829303132333435
  int jjtf[36][36]={{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//0
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//1
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,5,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//2
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,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,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//30
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,7,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//31
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//32
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//33
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//34
					{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};//35
				//   0 1 2 3 4 5 6 7 8 9 1011121314151617181920212223242526272829303132333435
int jjtld()
{
	HideCursor();
	int x1=16,y1=2,x2=32,y2=17,x3=16,y3=31;
	while(p[1].hp>0&&p[2].hp>0||p[2].hp>0&&p[3].hp>0||p[1].hp>0&&p[3].hp>0)
	{
	for(int i=0;i<=35;i++)
	{
		for(int j=0;j<=35;j++)
		{
			if(jjt[i][j]==1)
			{
				cout<<"HH"; 
			}
			else if(jjt[i][j]==5)
			{
				cout<<p[1].zy;
			}
			else if(jjt[i][j]==6)
			{
				cout<<p[2].zy;
			}
			else if(jjt[i][j]==7)
			{
				cout<<p[3].zy; 
			}
			else
			{
				cout<<"  ";
			}
		}
		cout<<endl;
	}
	cout<<"\t\t\t玩家1hp:"<<p[1].hp<<" "<<"\t\t"<<"玩家2hp:"<<p[2].hp<<" \t\t"<<"玩家3hp:"<<p[3].hp<<endl; 
	sr=getch();
	if(p[1].hp>0)
	{
		if(sr=='w'&&sl[x1-1][y1]==0)
		{
			jjt[x1-1][y1]=5;
			jjt[x1][y1]=0;
			x1-=1;
		}
		else if(sr=='a'&&sl[x1][y1-1]==0)
		{
			jjt[x1][y1-1]=5;
			jjt[x1][y1]=0;
			y1-=1;
		}
		else if(sr=='s'&&sl[x1+1][y1]==0)
		{
			jjt[x1+1][y1]=5;
			jjt[x1][y1]=0;
			x1+=1;
		}
		else if(sr=='d'&&sl[x1][y1+1]==0)
		{
			jjt[x1][y1+1]=5;
			jjt[x1][y1]=0;
			y1+=1;
		}
			if(sr=='z'&&fw[1]==0&&(x1==x3||y1==y3))
			{
				p[3].hp-=p[1].sh;
			}
			if(sr=='z'&&fw[1]>=sqrt(abs(x1-x3)*abs(x1-x3)+abs(y1-y3)*abs(y1-y3)))
			{
				p[3].hp-=p[1].sh;
			}
			if(sr=='z'&&fw[1]==0&&(x1==x2||y1==y2))
			{
				p[2].hp-=p[1].sh;
			}
			else if(sr=='z'&&fw[1]>=sqrt(abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2)))
			{
				p[2].hp-=p[1].sh;
			}
	}
	if(p[2].hp>0)
	{
		if(sr=='i'&&sl[x2-1][y2]==0)
		{
			jjt[x2-1][y2]=6;
			jjt[x2][y2]=0;
			x2-=1;
		}
		else if(sr=='j'&&sl[x2][y2-1]==0)
		{
			jjt[x2][y2-1]=6;
			jjt[x2][y2]=0;
			y2-=1;
		}
		else if(sr=='k'&&sl[x2+1][y2]==0)
		{
			jjt[x2+1][y2]=6;
			jjt[x2][y2]=0;
			x2+=1;
		}
		else if(sr=='l'&&sl[x2][y2+1]==0)
		{
			jjt[x2][y2+1]=6;
			jjt[x2][y2]=0;
			y2+=1;
		}
		if(sr=='m'&&fw[2]==0&&(x1==x2||y1==y2))
		{
			p[1].hp-=p[2].sh;
		}
		if(sr=='m'&&fw[2]>=sqrt(abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2)))
		{
			p[1].hp-=p[2].sh;
		}
		if(sr=='m'&&fw[2]==0&&(x2==x3||y2==y3))
		{
			p[3].hp-=p[2].sh;
		}
		if(sr=='m'&&fw[2]>=sqrt(abs(x3-x2)*abs(x3-x2)+abs(y3-y2)*abs(y31-y2)))
		{
			p[3].hp-=p[2].sh;
		}
	}
	if(p[3].hp>0)
	{
		if(sr=='t'&&sl[x3-1][y3]==0)
		{
			jjt[x3-1][y3]=6;
			jjt[x3][y3]=0;
			x3-=1;
		}
		else if(sr=='f'&&sl[x3][y3-1]==0)
		{
			jjt[x3][y3-1]=6;
			jjt[x3][y3]=0;
			y3-=1;
		}
		else if(sr=='g'&&sl[x3+1][y3]==0)
		{
			jjt[x3+1][y3]=6;
			jjt[x3][y3]=0;
			x3+=1;
		}
		else if(sr=='h'&&sl[x3][y3+1]==0)
		{
			jjt[x3][y3+1]=6;
			jjt[x3][y3]=0;
			y3+=1;
		}
		if(sr=='b'&&fw[3]==0&&(x1==x3||y1==y3))
		{
			p[1].hp-=p[3].sh;
		}
		else if(sr=='b'&&fw[3]>=sqrt(abs(x1-x3)*abs(x1-x3)+abs(y1-y3)*abs(y1-y3)))
		{
			p[1].hp-=p[3].sh;
		}
		if(sr=='b'&&fw[3]==0&&(x3==x2||y3==y2))
		{
			p[2].hp-=p[3].sh;
		}
		else if(sr=='b'&&fw[3]>=sqrt(abs(x3-x2)*abs(x3-x2)+abs(y3-y2)*abs(y3-y2)))
		{
			p[2].hp-=p[3].sh;
		}
	}
	cls();
	}
	if(p[1].hp<=0&&p[3].hp<=0)
	{
		system("cls");
		cout<<"\n\n\n\n\n\t\t\t玩家2胜利";
		Sleep(1111);
		system("cls"); 
		return 1; 
	}
	else if(p[2].hp<=0&&p[3].hp<=0)
	{
		system("cls");
		cout<<"\n\n\n\n\n\t\t\t玩家1胜利";
		Sleep(1111);
		system("cls"); 
		return 1; 
	}
	else
	{
		system("cls");
		cout<<"\n\n\n\n\n\t\t\t玩家3胜利";
		Sleep(1111);
		system("cls"); 
		return 1; 
	}
	return 1;
} 
int rld3()
{
	int dt;
	system("cls");
	cout<<"\t\t\t人物选择\n\n";
	cout<<"\t\t\t\t玩家1:\n\t\t\t\t 1.射手(对大范围造成小部分伤害) \n \t\t\t\t 2.刺客(对小范围造成大量伤害) \n \t\t\t\t 3.坦克(极高的血量) \n\t\t\t\t 4.机器人(对同一行,列造成巨额伤害)\n";
	cin>>p[1].rw;
	if(p[1].rw==1)
	{
		p[1].zy="射";
		fw[1]=4; 
		p[1].hp=100;
		p[1].sh=5;
	}
	else if(p[1].rw==2) 
	{
		p[1].zy="H "; 
		p[1].hp=100;
		p[1].sh=20;
		fw[1]=2;
	}
	else if(p[1].rw==3)
	{
		p[1].zy="盾";
		p[1].hp=300;
		p[1].sh=7;
		fw[1]=2;
	}
	else
	{
		p[1].zy="≌";
		p[1].hp=60;
		p[1].sh=80;
		fw[1]=0;
	}
	cout<<"\t\t\t\t玩家2:\n\t\t\t\t 1.射手(对大范围造成小部分伤害) \n \t\t\t\t 2.刺客(对小范围造成大量伤害) \n \t\t\t\t 3.坦克(极高的血量) \n\t\t\t\t 4.机器人(对同一行,列造成巨额伤害)\n";
	cin>>p[2].rw;
	if(p[2].rw==1)
	{
		p[2].zy="射";
		fw[2]=4; 
		p[2].hp=100;
		p[2].sh=5;
	}
	else if(p[2].rw==2) 
	{
		p[2].zy="H "; 
		p[2].hp=100;
		p[2].sh=20;
		fw[2]=2;
	}
	else if(p[2].rw==3) 
	{
		p[2].zy="盾";
		p[2].hp=300;
		p[2].sh=7;
		fw[2]=2;
	}
	else
	{
		p[2].zy="≌" ;
		p[2].hp=60;
		p[2].sh=80;
		fw[2]=0;
	}
	cout<<"\t\t\t\t玩家3:\n\t\t\t\t 1.射手(对大范围造成小部分伤害) \n \t\t\t\t 2.刺客(对小范围造成大量伤害) \n \t\t\t\t 3.坦克(极高的血量) \n\t\t\t\t 4.机器人(对同一行,列造成巨额伤害)\n";
	cin>>p[3].rw;
	if(p[3].rw==1)
	{
		p[3].zy="射";
		fw[3]=4; 
		p[3].hp=100;
		p[3].sh=5;
	}
	else if(p[3].rw==2) 
	{
		p[3].zy="H "; 
		p[3].hp=100;
		p[3].sh=20;
		fw[3]=2;
	}
	else if(p[3].rw==3)
	{
		p[3].zy="盾";
		p[3].hp=300;
		p[3].sh=7;
		fw[3]=2;
	}
	else
	{
		p[3].zy="≌";
		p[3].hp=60;
		p[3].sh=80;
		fw[3]=0;
	}
	system("cls");
	cout<<"\n\n\n\n\n\n\t玩家1控制:w,a,s,d  玩家2控制:i,j,k,l 玩家3控制:t f g h\n";
	cout<<"\t\t玩家1:z键攻击   玩家2:m键攻击   玩家3键攻击\n";
	Sleep(7000);
	system("cls");
	cout<<"\n\n\n\n\n\n\t\t地图:1.竞技场"; 
	cin>>dt;
	system("cls");
	for(int i=1;i<=4;i++)
	{
		cout<<"\n\n\n\n\n\n\n\n\t\t\t\t载入中"; 
		for(int j=1;j<=3;j++)
		{
			cout<<".";
			Sleep(200); 
			
		}
		system("cls");
	}
	for(int i=0;i<=35;i++)
	{
		for(int j=0;j<=35;j++)
		{
			jjt[i][j]=jjtf[i][j];
		}
	}
	if(dt==1)
	{
		system("cls");
		jjtld();
	}
	return 1;
}
int main()
{
	rld3();
}
2021/5/31 19:51
加载中...