Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13 / ShapeCollection / main.cpp
diff options
context:
space:
mode:
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