Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13 / ShapeCollection / main.cpp
diff options
context:
space:
mode:
Commit110481bee48bdb18f3d635cbc507aac1acc7c694 (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2022-05-24 20:10:50 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2022-05-24 20:10:50 +0300
Filesbe2cdf7f8769afd0f456776871b16fe8868ae67b /Sem. 13/ShapeCollection/main.cpp
Object-oriented_programming_FMI-110481bee48bdb18f3d635cbc507aac1acc7c694.tar
Object-oriented_programming_FMI-110481bee48bdb18f3d635cbc507aac1acc7c694.tar.gz
Object-oriented_programming_FMI-110481bee48bdb18f3d635cbc507aac1acc7c694.zip
Parentc1a310e69933035fb385f52275e9b80cdad695fc (diff)
added shapes collection
1 files changed, 18 insertions, 0 deletions
-rw-r--r--Sem. 13/ShapeCollection/main.cpp18
diff --git a/Sem. 13/ShapeCollection/main.cpp b/Sem. 13/ShapeCollection/main.cpp
new file mode 100644
index 0000000..4b6e784
--- /dev/null
+++ b/Sem. 13/ShapeCollection/main.cpp
@@ -0,0 +1,18 @@
+#include <iostream>
+#include "ShapeCollection.h"
+using namespace std;
+
+int main()
+{
+ ShapeCollection s;
+
+ s.addCircle(3, 4, 1);
+ s.addTriangle(1, 2, 9, 4, 0, 0);
+ s.addRectangle(1, 1, 9, 9);
+
+ std::cout << s.getIfPointInShapeByIndex(0, 3, 4.5)<< std::endl;
+ std::cout << s.getAreaOfFigureByIndex(2) << std::endl;
+
+
+
+} \ No newline at end of file