这是什么错误?
#include"graphics.h" #include"dos.h"
#include"conio.h"
#include "stdlib.h"
int main()
{
int gd=DETECT,gm,x=20,y=20,a=20,b=20,dx=1,dy=1;
int size,i;
void *buf;
initgraph(&gd,&gm,"");
setcolor(4);
randomize();
for(i=0;i<2000;i++)
putpixel(random(640),random(480),random(15));
do
{ /*cleardevice() ;*/
setfillstyle(6,4);
fillellipse(x,y,a,b);
size=imagesize(x,y,a,b);
buf=malloc(size);
getimage(x,y,a,b,buf);
x+=dx;y+=dy;
if(x==630||x==10) dx*=-1;
if(y==472||y==8) dy*=-1;
putimage(x,y,buf,COPY_PUT);
delay(500);
} while(!kbhit());
closegraph();
return 0;
}