- Create a binary tree. The height of the root rectangle is input by the user.
- Delete a node and its corresponding sub-trees. As input the user has to enter the node number of the tree.
- Insert a node in the tree. As input the user has to enter the node number of leaf node.
- Draw all the nodes of the tree as rectangles. This performs a level by level traversal of the tree.
- Compute the height of the tree.
- Input a node number from the user and display the rectangle of that node. This is equivalent to searching for a node in the tree.
- Draw the rectangles contained in only the leaf nodes of the tree.
g++ main.cpp myconsole.cpp rectangles.cpp mygraphics.cpp -o main.exe -L MinGW\lib -lgdi32