//node.h //header file for class Node template #ifndef NODE_H #define NODE_H template class Node { public: Node(Type x = 0, Node *n = 0) {info = x; next = n;} Type getinfo() {return info;} Node *getnext() {return next;} void setinfo(Type x) {info = x;} void setnext(Node *n) {next = n;} private: Type info; Node *next; }; #endif