Вы находитесь на странице: 1из 2

#include <graphics.

h>
#include <conio.h>
void main()
{
int driver = EGA,modo = EGAHI;
int trian[8]={58,147,107,63,167,147,58,147};
int arbol[36] = {
98, 73
,84, 75
,84, 69
,80, 66
,75, 60
,76, 51
,83, 46
,80, 36
,89, 24
,94, 31
,107, 24
,111, 30
,125, 24
,126, 31
,120, 39
,120, 46
,127, 43
,126, 60
};
int arbol2[76] = {
467, 194
,462, 194
,454, 199
,451, 190
,448, 188
,444, 185
,439, 179
,434, 175
,433, 164
,436, 163
,439, 169
,438, 160
,439, 151
,447, 151
,447, 152
,450, 142
,456, 146
,456, 137
,461, 133
,466, 139
,469, 142
,478, 142
,481, 146
,484, 143
,489, 137
,496, 142
,501, 148
,504, 151
,512, 154
,519, 154

,519,
,519,
,520,
,519,
,519,
,514,
,505,
,499,

161
161
175
179
188
194
191
191

};
initgraph( &driver, &modo, "C:\\tc20\\bin" );
drawpoly(4,trian);
rectangle(56,148,168,258);
rectangle(88,192,133,255);
rectangle(168,148,419,258);
line(107,61,418,61);
line(418,61,418,147);
rectangle(361,18,384,87);/*Chimenea*/
rectangle(210,196,375,257);/*Puerta Garage*/
rectangle(236,96,335,145);/*Ventana up*/
drawpoly(18,arbol);
drawpoly(38,arbol2);
line(469,253,498,191);
line(499,191,501,256);

/*setfillstyle(SOLID_FILL,GREEN); */
bar(90,400,620,450);
getch(); /* Pausa */
closegraph();
}

Вам также может понравиться