// linklist1.h By: Aiman Hanna - ©1993-2002 Aiman Hanna #ifndef __LINKLIST1_H #define __LINKLIST1_H #include class IntList; // Forward declaration. class Node { friend class IntList; friend ostream& operator<< ( ostream&, const IntList& ); public: Node(int); private: int value; Node *next; }; class IntList { friend ostream& operator<< ( ostream&, const IntList& ); public: IntList(); void InsertFirst( int ); void InsertLast( int ); ~IntList(); private: Node *first, *last; int size; }; #endif