相关代码 |
|
// perlist.h Definition of a PersonList class (pnode.h contains // the definition of a Person) #include "pnode.h" class PersonList { public: PersonList (); // constructor void Insert (const Person&); void Delete (const Person&); void Traverse (); ~PersonList (); // destructor PersonList (const PersonList&); // deep copies PersonList& operator= (const PersonList&); private: Pnode *start; };