Show how you think it should be implemented and we will be happy to critique your code. Just don't ask us to do your homework for you... :-(
rubberman
Posting Maven
2,571 posts since Mar 2010
Reputation Points: 365
Solved Threads: 305
Skill Endorsements: 52
You need to add some methods to the class P in order to traverse the list. IE, try creating some functions such as P::Node* first(), P::Node* last(), P::Node* next(P::Node* current). However, to do that, you need to make the Node structure public, or external to the class P.
rubberman
Posting Maven
2,571 posts since Mar 2010
Reputation Points: 365
Solved Threads: 305
Skill Endorsements: 52
Question Answered as of 1 Year Ago by
rubberman