TC2.0下的小动画程序改错。。

来源:百度知道 编辑:UC知道 时间:2024/05/17 04:50:14
动画的程序如下,CTRL+F9运行,按任意键,动画结束后屏幕最左端显示两个x,怎么去掉那两个x?求高手帮忙.另外我的动画太小,当把所有的坐标都改成原来的两倍,CTRL+F9运行,动画怎么有重影??
#include "stdlib.h"
#include "stdio.h"
#include "graphics.h"
#include "alloc.h"
#include "conio.h"
#include "dos.h"

int STEP=5;
void *tank1,*tank2;/*无类型指针*/
void drawtank();
void movetank();

main()
{ int gdriver=DETECT;
int gmode=0;
initgraph(&gdriver,&gmode,"");
drawtank();
getch();
movetank();
getch();
closegraph();
}

void drawtank()
{ void *pedals1;
void *pedals2;

line(30,10,40,10);
line(27,15,30,10);
line(43,15,40,10);
line(22,15,48,15);
line(15,25,22,15);
line(55,25,48,15);
line(15,25,55,25);
line(51,19,74,14);
line(52.5,21,75,17);
line(74,14,75,17);
line(15

改好了。。。。

#include "stdlib.h"
#include "stdio.h"
#include "graphics.h"
#include "alloc.h"
#include "conio.h"
#include "dos.h"
#include "math.h"
#define PI 3.1415926
int STEP=5;
void *tank1,*tank2,*kong;/*无类型指针*/
void drawflag();
void drawtank();
void movetank();

main()
{int gdriver=DETECT;
int gmode=0;
initgraph(&gdriver,&gmode,"");

kong=malloc(imagesize(300,300,320,320));
getimage(300,300,320,320,kong);

settextstyle(3,0,2);
outtextxy(0,0,"Wei Guo Qing Xian Li !!!");
outtextxy(450,380,"Made By");
outtextxy(450,400,"Fan Xiao Long");
outtextxy(450,420,"Zhao Feng");

drawflag();
drawtank();
getch();
movetank();
getch();
closegraph();
}
void