#ifndef TREENODE #define TREENODE // represents a node in a binary tree template class tnode { public: // tnode is a class implementation structure. making the // data public simplifies building class functions T nodeValue; tnode *left, *right; // default constructor. data not initialized tnode() {} // initialize the data members tnode (const T& item, tnode *lptr = NULL, tnode *rptr = NULL): nodeValue(item), left(lptr), right(rptr) {} }; #endif // TREENODE