#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
circle(320,240,100);
circle(270,210,10);
circle(370,210,10);
ellipse(320,260,0,360,8,15);
line(300,290,340,290);
arc(320,290,180,0,20);
arc(220,220,80,260,15);
arc(420,220,280,100,15);
rectangle(290,130,350,140);
arc(320,130,0,180,30);
arc(320,480,0,180,140);
arc(320,480,0,180,80);
getch();
closegraph();
}
No comments:
Post a Comment