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 Virtuoso
1,564 posts since Mar 2010
Reputation Points: 277
Solved Threads: 179
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 Virtuoso
1,564 posts since Mar 2010
Reputation Points: 277
Solved Threads: 179