#ifndef _SORTEDLIST_ template struct NodeType { ItemType info; NodeType* next; }; template class SortedType { public: SortedType(); ~SortedType(); void MakeEmpty(); bool IsFull() const; int LengthIs () const; void RetrieveItem ( ItemType& item, bool& found ) ; void InsertItem (ItemType item); void DeleteItem (ItemType item); void ResetList (); void GetNextItem(ItemType& item); NodeType* GetCurPointer(); private: NodeType* listData; NodeType* currentPos; }; #define _SORTEDLIST_ #endif