ex5-9node.h - Example 5-9 Linked List - Node Header file (ex5-9node.h)

#ifndef NODE_H
#define NODE_H

class List;		// forward declaration

class Node
{
	int		data_;
	Node*	next_;
	Node();			// disable the default ctor
public:
	Node(int d,Node* n) { data_ = d; next_ = n; }
friend class List;
};

#endif



CIS27: Programming in C++    Instructor: Joe Bentley