这TM的是什么?

#include
#include
#include
#include
#include

	//int wdf();   

	///////////////////////////////////////////////////////
	//这个程序还有很大问题的
	//
	//
	///////////////////////////////////////////////////////
	int Loa1=585,Loa2=1050,Lba=500,Lae=1800,Lbe=2300,Lbc=450,Lde=450;   //这么多全局变量合适吗??

	int Lcd1=2600,Lcd2=2300,Lcd3=2300,Lcd4=2600;

	int Loaj=-10,Loax=10,Lcdzheng=10,Lcdfu=-10;

	int Loa1i,Loa2i,i=1,B;

	int k1,k2,k3;

	int Lcd11,Lcd22,Lcd33,Lcd44;

	int Xa,Xb=-400,Xc=-400,Ya,Yb=800,Yc=1250,Xe,Ye,Xd,Yd;
	int jiaodu_fai=atan2((-Xb),Yb),jiaodu_ED,jiaodu_beita,jiaodu_aerfa;      //角度定义

	//int cosB=(Xb*Xb+Yb*Yb+Lba*Lba+-Loa1i*Loa1i)/(2*Lba*sqrt(Xb*Xb+Yb*Yb)); ////////////////////////////////////////////////////////
	   
	//
	int a,b;   //计算角度B的中间变量,没什么用

	int wtf(int m,int n)
	{
	Loa1i=m;
	Lcd11=n;

	a=sqrt(  4*Lba*Lba*(Xb*Xb+Yb*Yb)-(Xb*Xb+Yb*Yb+Lba*Lba-Loa1i*Loa1i)*(Xb*Xb+Yb*Yb+Lba*Lba-Loa1i*Loa1i)  );   /////////////////////////
		
	b=Xb*Xb+Yb*Yb+Lba*Lba-Loa1i*Loa1i;                              ////////////////////


	   jiaodu_beita=atan2(a,b);
	   Xa=Xb+Lba*sin(B+jiaodu_fai);
	   Ya=Yb+Lba*cos(B+jiaodu_fai);
	 jiaodu_aerfa=atan2(Ya,Xa);
	
	
	//
	Xe=Xb+(Lba+Lae)*sin(B);
	Ye=Yb+(Lba+Lae)*cos(B);


	k1=2*(Ye-Yc)*Lde;
	k2=2*(Xe-Xc)*Lde;
	k3=(Xe-Xc)*(Xe-Xc)+(Ye-Yc)*(Ye-Yc)+Lde*Lde-Lcd11*Lcd11;                     //////////////////////////////
	
	jiaodu_ED=2*atan2((k1+sqrt(k1*k1+k2*k2-k3*k3)),(k2-k3));
	
	Xd=Xe+Lde*cos(jiaodu_ED);
	Yd=Ye+Lde*sin(jiaodu_ED);

		cout<<"第 "<

你可能感兴趣的:(扯蛋蛋)