#include<graphics.h>
#include<math.h>
#include<stdio.h>
main()
{int drive=DETECT,mode,i,j;
char *p1,*p2,c;
initgraph(&drive,&mode," ");
i=0;j=0;
setcolor(4);
circle(30,30,20);
setfillstyle(1,4);
floodfill(30,30,4);
p1=(char *)malloc(imagesize(0,0,60,60));
getimage(0,0,60,60,p1); cleardevice();
while((c=getch())!=32)
{ setbkcolor(1);
if(c=='d')i=i+5;
if(c=='e')i=i-5;
if(c=='f')j=j+5;
if(c=='s')j=j-5;
putimage(j,i,p1,0);
} getch();
closegraph();
}