daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest May 16th, 2018 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "cseatreebin.h"
  2. #include "cseatreebinint.h"
  3. #include <stdlib.h>
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8.  
  9.  
  10. CSearchTreeBin::CSearchTreeBin()
  11. {
  12.     pInternalRep = new CSearchTreeBinInt;
  13. };
  14.  
  15. void CSearchTreeBin::Insert(int dat)
  16. {
  17.     pInternalRep->Insert(dat);
  18. }
  19.  
  20. void CSearchTreeBin::Print()
  21. {
  22.     pInternalRep->Print();
  23. }
  24.  
  25. int CSearchTreeBin::GetNrOfNodes(void)
  26. {
  27.     return pInternalRep->GetNrOfNodes();
  28.  
  29. }
  30. CSearchTreeBin::~CSearchTreeBin()
  31. {
  32.     delete pInternalRep;
  33.     pInternalRep = NULL;
  34.  
  35. }
RAW Paste Data
Top