PROGRAM TO DRAW HUT ON SCREEN

//PROGRAM TO DRAW HUT ON SCREEN

#include<iostream.h>

#include<conio.h>

#include<graphics.h>

 

void main()

{

intgd=DETECT,gm;

initgraph(&gd,&gm,””);

setfillstyle(1,WHITE);

floodfill(1,1,GREEN);

setcolor(BLACK);

line(200,150,170,200);

line(200,150,230,200);

rectangle(170,200,400,270);

line(200,150,400,150);

line(400,150,400,200);

line(230,200,230,270);

circle(200,180,5);

rectangle(290,220,340,250);

rectangle(190,220,210,270);

getch();

}

Leave a Reply

Your email address will not be published. Required fields are marked *