// Massingill, Berna L. // 2001 Apr // CS1321 #include #include #include #include "tree.h" #include "tree-debug.h" typedef Tree sTree; int main(void) { // Define somewhat complicated tree. sTree t = sTree("hello", sTree("whatever", sTree(), sTree("which", sTree(), sTree())), sTree("something", sTree("here", sTree(), sTree()), sTree("there", sTree(), sTree())) ); // Print it. cout << "Here is the tree:\n"; printTree(cout, t); cout << "That's all, folks!\n"; return EXIT_SUCCESS; }