#ifndef NODE_CLASS #define NODE_CLASS #ifndef NULL #include #endif // NULL // linked list node template class node { public: T nodeValue; // data held by the node node *next; // next node in the list // default constructor with no initial value node() : next(NULL) {} // constructor. initialize nodeValue and next node(const T& item, node *nextNode = NULL) : nodeValue(item), next(nextNode) {} }; #endif // NODE_CLASS