Advertisement
rinab333

CSCI 340 assignment6.h

Jul 16th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #ifndef ASSIGNMENT6
  2. #define ASSIGNMENT6
  3. #include "assignment5.h"
  4. //Terina Burr
  5. //Section One
  6. //Due 10/30/15
  7. //Assignment 6
  8.  
  9. class BST : public binTree {
  10.     public:
  11.         BST() : binTree() {}
  12.         void insert( int );
  13.         bool search( int );
  14.         bool remove( int );
  15.  
  16.     void printLeftLeaves();
  17.     void sumAncestors(int, int&);
  18.  
  19.     private:
  20.         void insert( Node*&, int );
  21.         bool search( Node*&, int );
  22.         bool remove( Node*&, int );
  23.  
  24.     void printLeftLeaves(Node*);
  25.     bool sumAncestors(Node*, int, int&);
  26. };
  27.  
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement