/* main.cc */ #include // for cout, cin, endl #include "treenode.h" void part2(); // warns compiler of future function definitions void part3(); /* main() tests the TreeNode class */ main() { part2(); part3(); } void part2() { // Fill in your solution to Part II here. } void part3() { TreeNode *tn1 = new TreeNode(1); TreeNode *tn2 = new TreeNode(2); tn1->left = tn2; tn1->right = new TreeNode(3); TreeNode tn4(4); tn4.left = tn1; /* Draw the memory at this point in the program for Part III */ }