diff options
added shapes collection
1 files changed, 18 insertions, 0 deletions
| -rw-r--r-- | Sem. 13/ShapeCollection/main.cpp | 18 |
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 |
