Skip to content

Commit 0a47b5a

Browse files
Alexandr PanfilkinAlexandr Panfilkin
Alexandr Panfilkin
authored and
Alexandr Panfilkin
committed
tree done
1 parent 0fbe01e commit 0a47b5a

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

picture.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
void house(); // 1 участник house.cpp
2-
void sun(); // 2 участник sun.cpp
3-
void man(); // 3 участник man.cpp
4-
void fence(); // 4 участник fence.cpp
5-
void tree(); // если есть 5 участник tree.cpp
1+
void house(); // 1 участник house.cpp
2+
void sun(); // 2 участник sun.cpp
3+
void man(); // 3 участник man.cpp
4+
void fence(); // 4 участник fence.cpp
5+
void tree(); // если есть 5 участник tree.cpp

tree.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <graphics.h>
2+
3+
void tree() {
4+
int points[] = {
5+
390, 200, 430, 200, 450, 400, 370, 400,
6+
};
7+
setfillstyle(SOLID_FILL, BROWN, -1);
8+
fillpoly(4, points);
9+
setfillstyle(SOLID_FILL, GREEN, -1);
10+
fillellipse(450, 210, 60, 60);
11+
// fillellipse(415, 250, 25, 25);
12+
fillellipse(390, 190, 45, 45);
13+
fillellipse(370, 230, 50, 50);
14+
}

0 commit comments

Comments
 (0)