#include <iostream>#include "BST.hpp"using namespace std;int main (int argc, char* argv[]){cout<<"Creating tree"<<endl;BST tree(5);tree.addNode(2); //left child to 5tree.addNode(1); //left child to 1tree.addNode(4); //right child to 2tree.addNode(7); //right child to 5tree.addNode(10); //right child of 7tree.addNode(8); // left child of 10tree.addNode(6); // left child of 7cout<<"----------------I ...[Show More]
Category: | Study Guide |
Number of pages: | 1 |
Language: | English |
Last updated: | 3 years ago |
Downloads: | 1 |
Views: | 3 |