哪位大哥大姐帮我改下这个程序啊,报错说说明语法错误。谢谢
#include<stdlib.h>#include<stdio.h>
#include<alloc.h>
#include<graphics.h>
#include<process.h>
#include<dos.h>
#include<conio.h>
#include<math.h>
main()
{int driver=VGA;
int mode=VGAHI ;
int i,dt;
double x1[80],y1[80],ex,ey,xs,ys,x[11],y[11],Ex,Ey;
initgraph(&driver,&mode,"");
setfillstyle(1,7);
bar(20,20,620,460);
setbkcolor(8);
setcolor(4);
circle(250,240,10);
circle(390,240,10);
setcolor(1);
settextstyle(GOTHIC_FONT,HORIZ_DIR,2);
outtextxy(246,230,"_+");
outtextxy(386,230,"-");
for(i=0;;20>=xs&&xs<=320&&ys<=240&&ys>=20)
{Ex=-(x[i]-390)/pow((x[i]-390)*(x[i]-390)+(240-y[i])*(240-y[i]),1.5)+(x[i]-250)/pow((x[i]-250)*(x[i]-250)+(240-y[i])*(240-y[i]),1.5);
Ey=-(240-y[i])/poe((x[i]-390)*(x[i]-390)+(240-y[i])*(240-y[i]),1.5)+(240+y[i])/poe((x[i]-250)*(x[i]-250)+(240-y[i])*(240-y[i]),1.5);
x[i]+=dt*Ex;
y[i]-=dt*Ey;
setcolor(5);
line((int)xs,(int)ys,(int)x[i],(int)y[i]);
line((int)xs,480-(int)ys,(int)x[i],480-(int)y[i]);
line(640-(int)xs,(int)ys,640-(int)x[i],(int)y[i]);
line(640-(int)xs,480-(int)ys,640-(int)x[i],480-(int)y[i]);
xs=x[i];
ys=y[i];
}
}
setcolor(9);
outtextxy(25,470,"please inter any char to continue:");
getchar();
i=0;
do
{
x1[0]=320;
y1[0]=240;
y1[i+1]=240;
Ex=-(x1[i]-390)/pow((x1[i]-390)*(x1[i]-390)+(240-y1[i])*(240-y1[i]),1.5)+(x1[i]-250)/pow((x1[i]-250)*(x1[i]-250)+(240-y1[i])*(240-y1[i]),1.5);
Ey=-(240-y1[i])/pow((x1[i]-390)*(x1[i]-390)+(240-y1[i])*(240-y1[i]),1.5)+(240-y1[i])/pow((x1[i]-250)*(x1[1]-250)+(240-y1[i])*(240-y1[i]),1.5);
x1[i]-=dt*Ey;
y1[i]-=dt*Ex;
setcolor(2);
line((int)xs,(int)x1[i],(int)ys,(int)y1[i]);
line((int)xs,480-(int)x1[i],(int)ys,480-(int)y1[i]);
line(640-(int)xs,(int)x1[i],640-(int)ys,(int)y1[i]);
line(640-(int)xs,480-(int)x1[i],640-(int)ys,480=(int)y1[i]);
xs=x1[i];
ys=y1[i];
}
i++;
{while(x1[i]>260&&i<=40);getchar();}