CMSC-341, Fall 1999, Sections 0101

BinaryNode.H

template <class Comparable>BST; template <class Comparable> class BinaryNode { private: Comparble element; BinaryNode *left; BinaryNode *right; BinaryNode (const Comparable & theElement, const BinaryNode *L, const BinaryBode *R) : element (theElement), left(L), right(R) { /* no code */ } friend class BST<Comparable> };
Dennis Frey
Last modified: Sun Sep 26 23:37:35 EDT 1999