#ifndef TNODE_H #define TNODE_H //--------- class Tnode //--------- { friend class Tree; private: int number; //Actual data of the element. Tnode* left; //Pointer to left child Tnode* right; //Pointer to right child int Compare(const int) const; //Compares argument with 'number'. Tnode(int i) : number(i), left(0), right(0) {} //Constructor ~Tnode(); //Destructor, deletes left and right. }; #endif