Question
here's the driver file #include #include AT_Cast.h //Adventure Time Cast class #include BinaryTree.h //BinaryTree template class using namespace std; int main() { int num =
here's the driver file
#include
#include "AT_Cast.h" //Adventure Time Cast class
#include "BinaryTree.h" //BinaryTree template class
using namespace std;
int main()
{
int num = 0;
BinaryTree
AT_Cast castMember1(1021, "Finn");// put data into object
tree.insertNode(castMember1); // put object into tree
AT_Cast castMember2(1057, "Jake");
tree.insertNode(castMember2);
AT_Cast castMember3(2486, "Ice King");
tree.insertNode(castMember3);
AT_Cast castMember4(3769, "Princess Bubblegum");
tree.insertNode(castMember4);
AT_Cast castMember5(1017, "Lumpty Space Princess");
tree.insertNode(castMember5);
AT_Cast castMember6(1275, "Cinnamon Bun");
tree.insertNode(castMember6);
AT_Cast castMember7(1899, "Peppermint Butler");
tree.insertNode(castMember7);
AT_Cast castMember8(4218, "Marceline");
tree.insertNode(castMember8);
AT_Cast castMember9(1214, "BMO");
tree.insertNode(castMember9);
// Display the cast members.
cout << " Here are the cast members of Adventure Time: ";
cout << "IN ORDER TRAVERSAL---------------------------------------------- ";
tree.displayInOrder();
cout << "PRE ORDER TRAVERSAL---------------------------------------------- ";
tree.displayPreOrder();
cout << "POST ORDER TRAVERSAL---------------------------------------------- ";
tree.displayPostOrder();
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started