All pastes #125445 Raw Edit

Stuff

public cpp v1 · immutable
·published 2006-08-10 17:31 UTC
rendered paste body
class List{ private:        class Node        {         public:                Node(const DataType& data, Node* next);                DataType GetData(void);                void SetData(const DataType& data);                Node* GetNext(void);                void SetNext(Node* next);         private:                DataType myData;                Node*    myNext;        }; public:        List(void);        ~List(void);        bool Insert(const DataType& data);        bool First(void);        bool Next(void);        bool GetCurrent(DataType& data);        bool SetCurrent(const DataType& data);        bool Search(const DataType& data);        bool InsertSorted(const DataType& data);private:        Node* myCurrent;        Node* myPrevious;        Node* myHead;};