Study Guide > University of Colorado, Boulder - CSCI 2270driver.cpp


#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]

Preview 1 out of 1 pages
Purchase this document to unlock the blurred part and the rest of the document

Unlock Now

Reviews( 0 )