Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef ASSIGNMENT6
- #define ASSIGNMENT6
- #include "assignment5.h"
- //Terina Burr
- //Section One
- //Due 10/30/15
- //Assignment 6
- class BST : public binTree {
- public:
- BST() : binTree() {}
- void insert( int );
- bool search( int );
- bool remove( int );
- void printLeftLeaves();
- void sumAncestors(int, int&);
- private:
- void insert( Node*&, int );
- bool search( Node*&, int );
- bool remove( Node*&, int );
- void printLeftLeaves(Node*);
- bool sumAncestors(Node*, int, int&);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement