How to recursively print STL-based trees
There are plenty of resources on how we may recursively search and print the contents of binary trees. This example shows how to (recursively) make use of the Boost serialization libraries and streams in order to print the contents of a tree-like data structure. For more help on getting set up with the Boost libraries in Visual Studio environments, see these following links: https://www.technical-recipes.com/2012/using-boostpro-to-install-boost-library-packages/ https://www.technical-recipes.com/2011/how-to-install-the-boost-libraries-in-visual-studio/ This following 'Node' class stores a std::string text value. In place of things like linked lists or binary trees, the Node class uses a std::vector of Node objects: [code language="cpp"] #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_iarchive.hpp> #include <boost/serialization/vector.hpp> #include <fstream> #include <vector> #include <iomanip...