/*********************************************************** Copyright 2003 Rick Miller - Pulp Free Press This source code accompanies the text C++ For Artists and is provided for instructional purposes only. No warranty concerning the quality of the code is expressed or implied. You are free to use this code in your programs so long as this copyright notice is included in its entirety. **********************************************************/ #ifndef NODE_H #define NODE_H #include template class Node { public: Node(Node *the_parent = NULL ); T item; int number_of_items; Node *parent; Node *left_child; Node *right_child; }; template Node::Node(Node *the_parent):number_of_items(0) ,parent(the_parent), left_child(NULL), right_child(NULL) {} #endif