Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <graphics.h>
- #include <dos.h>
- void main(){
- int gd = DETECT,gm ;
- initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");
- //housepart (hp) starts here
- line(100,50,30,100);//hp1
- line(100,50,400,50);//hp2
- line(400,50,330,100);//hp4
- line(400,50,470,100);//hp3
- line(30,100,470,100);//hp5
- line(30,100,30,250);//hp8
- rectangle(50,130,70,170);//leftdoor
- rectangle(300,130,320,170);//rightdoor
- line(30,250,470,250);//hp6
- line(330,100,330,250);//hp9
- line(470,100,470,250);//hp7
- line(130,250,130,170);//hp10
- line(180,250,180,170);//hp12
- line(130,170,180,170);//hp11
- //house ends here
- //car part (cp) starts here
- line(320,290,570,290);//cp1
- line(350,340,610,340);//cp5
- line(570,290,610,340);//cp6
- line(610,340,630,380);//cp20
- line(320,290,350,340);//cp4
- line(320,290,300,350);//cp2
- line(350,340,330,380);//cp3
- line(300,350,330,380);//cp7
- line(250,380,630,380);//cp9
- line(300,350,220,350);//cp8
- line(220,350,250,380);//cp10
- line(220,350,220,380);//cp12
- line(250,380,250,410);//cp14
- line(220,380,250,410);//cp13
- line(250,410,400,410);//cp11
- circle(425,410,25);//cp15
- line(450,410,520,410);//cp16
- circle(545,410,25);//cp17
- line(570,410,630,410);//cp18
- line(630,380,630,410);//cp19
- //car ends here
- //man starts here
- circle(150,300,20);//head
- line(150,320,150,370);//body
- line(150,370,130,450);//leftleg
- line(150,370,170,450);//rightleg
- line(150,330,130,370);//lefthand
- line(150,330,170,370);//righthand
- getch();
- closegraph();
- }
Add Comment
Please, Sign In to add comment