Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Structures and data algorithms / Project / exc / main.cpp
diff options
context:
space:
mode:
1 files changed, 9 insertions, 0 deletions
-rw-r--r--Year 2/Structures and data algorithms/Project/exc/main.cpp9
diff --git a/Year 2/Structures and data algorithms/Project/exc/main.cpp b/Year 2/Structures and data algorithms/Project/exc/main.cpp
new file mode 100644
index 0000000..e9d7032
--- /dev/null
+++ b/Year 2/Structures and data algorithms/Project/exc/main.cpp
@@ -0,0 +1,9 @@
+#include "Box.h"
+#include <iostream>
+
+int main() {
+ Box plovdivBox("PlovdivBox", { "Magnet", "Book" }, { new Box("ArtBox", {}, { new Box("Drawings", { "OldPlovdiv" }, {}) }), new Box("TheatreBox", {}, { new Box("TheatreSouvenirs", {}, { new Box("Plates", { "DecorativePlate" }, {}), new Box("Bags", {}, {}) }) })});
+ plovdivBox.print(std::cout) << std::endl;
+ plovdivBox.removeUselessSubBoxes();
+ plovdivBox.print(std::cout) << std::endl;
+}