相关代码 |
|
// pnode.h Definition of a Pnode class //#include "person.h" typedef char Person; // temporary for debugging const Person HEADPERSON = ' '; const Person TAILPERSON = '~'; class Pnode { public: Pnode (); // constructor friend class PersonList; // PersonList is our friend private: Pnode *link; Person person; };