Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Structures and data algorithms / Project / exc / main.cpp
blob: e9d70320d0f882610b5121e58d20a9fb6804abc8 (plain) (blame)
1
2
3
4
5
6
7
8
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;
}