//linklist.h //an unordered linked list #ifndef LINKLIST_H #define LINKLIST_H #include"node.h" class linklist { public: linklist(); ~linklist(); //important destructor! void insert(int i); //inserts at the //end of the list private: Node * pHead; friend ostream& operator<<(ostream& out, linklist & li); // & li is reference so don't copy // whole list or just pointer to the list? friend istream& operator>>(istream& in, linklist & li); //appends input data to li. //Uses -1000000 (minus one million) as end-of-list marker };//end linklist #endif