From 7f4cfc6c2114b81bc480f05ceebc643598a92d25 Mon Sep 17 00:00:00 2001 From: angeld55 Date: Fri, 28 May 2021 14:27:39 +0300 Subject: added sem 14 --- Sem. 14/ShapesCollection/main.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Sem. 14/ShapesCollection/main.cpp (limited to 'Sem. 14/ShapesCollection/main.cpp') diff --git a/Sem. 14/ShapesCollection/main.cpp b/Sem. 14/ShapesCollection/main.cpp new file mode 100644 index 0000000..07202b2 --- /dev/null +++ b/Sem. 14/ShapesCollection/main.cpp @@ -0,0 +1,18 @@ +#include +#include "ShapesCollection.h" +using namespace std; + + +//Ромб +int main() +{ + ShapesCollection s; + + s.addCircle(3, 4, 5); + s.addTriangle(2, 3, 54, 3, 2, 1); + s.addRectangle(1, 2, 3, 4); + s.addRhombus(3, 2, 0, 0); + s.addSquare(4, 4, 10); + + s.printAreas(); +} -- cgit v1.3.1-23-gd82d