#include #include #include #include void main() { struct point { int x,y; } p1, tt; int left,right,top,bottom,lon,sho,i,Drive, Mode; float inc, x, y, rr; void *aa; printf("give me the center point --> "); scanf("%d %d",&p1.x,&p1.y); printf("input the long and shor axis --> "); scanf("%d %d",&lon,&sho); Drive=DETECT; initgraph(&Drive, &Mode, ""); setcolor(14); clearviewport(); setfillstyle(2,3); fillellipse(p1.x,p1.y,lon,sho); getche(); left=p1.x-lon; right=p1.x+lon; top=p1.y-sho; bottom=p1.y+sho; aa=malloc(imagesize(left,top,right,bottom)); getimage(left,top,right,bottom,aa); for (i=20; i<=100; i++) putimage(left+i,top+i,aa,OR_PUT); getche(); closegraph(); }