MFC程序syntax error “=” 不会改求大神帮忙!!1
void CGSDlg::OnButton1() {
// TODO: Add your control notification handler code here
CString str;
if(operation==0)
{
double a0,a2,a4,a6,a8,X;
double B;
m_b.GetWindowText(str);
B = atof(str)*PI/180;
a0 = 1+3.0/4*e1*e1+45.0/64*pow(e1,4)+350.0/512*pow(e1,6)
+11025.0/16384*pow(e1,8);
a2 =-1.0/2*(3.0/4*e1*e1+60.0/64*pow(e1,4)+525.0/512*pow(e1,6)
+17640.0/16384*pow(e1,8));
a4 = 1.0/4*(15.0/64*pow(e1,4)+210.0/512*pow(e1,6)
+8820.0/16384*pow(e1,8));
a6 = -1.0/6*(35.0/512*pow(e1,6)+2520.0/16384*pow(e1,8));
a8 = -1.0/6*(35.0/512*pow(e1,6)+2520.0/16384*pow(e1,8));
X = a*(1-e1*e1)*(a0*B+a2*sin(2*B)+a4*sin(4*B)+a6*sin(6*B)+a8*sin(8*B));
double p,t,n,V,N,c,l0,L0,L00,e2,Rou,Eta;
m_l.GetWindowText(str);
L0 = atof(str)*PI/180;
m_zxjd.GetWindowText(str);
L00 = atof(str)*PI/180;
l0 = (L0-L00)*3600;
t = tan(B);
Rou = 180*3600/PI;
e2 = sqrt((a*a-b*b)/(b*b));
N=a/sqrt(1-e1*e1*sin(B)*sin(B));
Eta=e2*cos(B);
double x,y;
x = X + N/(2*Rou*Rou)*sin(B)*cos(B)*l0*l0+
N/(24*pow(Rou,4))*sin(B)*pow(cos(B),3)*(5-t*t+9*Eta*Eta+4*pow(Eta,4))*pow(l0,4)+
N/(720*pow(Rou,6))*sin(B)*pow(cos(B),5)*(61-58*t*t+pow(t,4))*pow(l0,6);
y = N/Rou*cos(B)*l0+
N/(6*pow(Rou,3))*pow(cos(B),3)*(1-t*t+Eta*Eta)*pow(l0,3)+
N/(120*pow(Rou,5))*pow(cos(B),5)*(5-18*t*t+pow(t,4)+14*Eta*Eta-58*Eta*Eta*t*t)*pow(l0,5);
char buf[15];
sprintf(buf,"%f",x);
m_x.SetWindowText(buf);
sprintf(buf,"%f",y);
m_y.SetWindowText(buf);
}