#include<iostream.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int i,gd=DETECT,gm,midx,midy;
initgraph(&gd,&gm,"c:\\TurboC3\\bgi");
midx=getmaxx()/2;midy=getmaxy()/2;
setcolor(BLUE);
outtextxy(midx-70,midy+50,"..................");
outtextxy(midx-68,midy+58,".................");
outtextxy(midx-65,midy+66,".................");
outtextxy(midx-63,midy+74,"................");
outtextxy(midx-61,midy+82,"...............");
outtextxy(midx-58,midy+90,"...............");
outtextxy(midx-55,midy+98,"...............");
outtextxy(midx-53,midy+106,"..............");
outtextxy(midx-50,midy+114,"..............");
outtextxy(midx-47,midy+122,".............");
outtextxy(midx-44,midy+130,"............");
setcolor(YELLOW);
ellipse(midx,midy,0,180,80,130);
line(midx-80,midy,midx-50,midy+150);
line(midx+80,midy,midx+50,midy+150);
ellipse(midx,midy,0,360,80,15);
setfillstyle(11,WHITE);
fillellipse(midx,midy+150,50,15);
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.