-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBuilding.cpp
54 lines (36 loc) · 1014 Bytes
/
Building.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include<stdio.h>
#include<graphics.h>
#include<string.h>
#include<conio.h>
int main()
{
int gd = DETECT, gm;
initgraph(&gd, &gm, "");
line(0, 479, 637, 479);
setfillstyle(LINE_FILL, WHITE);
rectangle(0, 78, 36, 479);
floodfill(20, 164, WHITE);
line(36, 78, 46, 85);
line(46, 85, 46, 479);
rectangle(59, 196, 152, 479);
floodfill(106, 334, WHITE);
line(152, 196, 168, 203);
line(168, 203, 168, 479);
rectangle(186, 117, 296, 479);
floodfill(240, 313, WHITE);
line(296, 117, 315, 126);
line(315, 126, 315, 479);
rectangle(328, 244, 419, 479);
floodfill(377, 364, WHITE);
line(419, 244, 434, 251);
line(434, 251, 434, 479);
rectangle(450, 173, 550, 479);
floodfill(494, 326, WHITE);
line(550, 173, 562, 182);
line(562, 182, 562, 479);
rectangle(574, 60, 687, 479);
floodfill(606, 297, WHITE);
getch();
closegraph();
return 0;
}