Sign in to follow this  

Linked lists

This topic is 4556 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

No homework questions. =D

Since this sounds too much like homework, I'll keep it simple and let you figure out implementation.

You have an object, it has a "pointer" as an attribute which points to another object of the same type. This next object has a pointer attribute which points to the next object. By keeping track of the first object and placing each sucessive object in the pointer of the last object, you can find every object in this list just by following the trail of pointers.

Imagine a book, where every page was jumbled up, but each page told you where the next page is. From page 12, the next page is 27.

Share this post


Link to post
Share on other sites

This topic is 4556 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this