#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
line(280,45,280,410);
line(290,45,290,410);
arc(285,45,0,180,5);
rectangle(250,410,320,430);
rectangle(220,430,350,450);
rectangle(190,450,380,470);
ellipse(330,55,0,180,50,5);
ellipse(430,55,180,0,50,5);
ellipse(330,95,0,180,50,5);
ellipse(430,95,180,0,50,5);
ellipse(330,135,0,180,50,5);
ellipse(430,135,180,0,50,5);
setfillstyle(1,2);
floodfill(360,115,WHITE);
ellipse(330,175,0,180,50,5);
ellipse(430,175,180,0,50,5);
ellipse(480,75,90,270,5,20);
ellipse(480,115,270,90,5,20);
ellipse(480,155,90,270,5,20);
circle(380,115,15);
circle(380,115,5);
setfillstyle(1,0);
floodfill(380,121,WHITE);
setfillstyle(1,0);
floodfill(380,115,WHITE);
setfillstyle(1,15);
floodfill(480,115,WHITE);
setfillstyle(1,3);
floodfill(480,140,WHITE);
setfillstyle(1,6);
floodfill(380,60,WHITE);
outtextxy(450,400,"Jai Hind");
outtextxy(440,415,"Created By..");
outtextxy(410,430,"Programming World");
getch();
closegraph();
}
No comments:
Post a Comment