Advertisement
Loesome

BinNode.h

Apr 4th, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #ifndef BINNODE_H
  2. #define BINNODE_H
  3.  
  4.  
  5. template <typename E> class BinNode {
  6. public:
  7. BinNode(const E& e,BinNode * left = 0, BinNode *right = 0):
  8. element(e),left(left),right(right)
  9. {
  10. //this->element = element;
  11. //this->left = left;
  12. //this->right = right;
  13. }
  14.  
  15. E element;
  16. BinNode *left;
  17. BinNode *right;
  18. };
  19. #endif // BINNODE_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement