How do I traverse linked list?

hnmm
Last edited on
How would you traverse from first node to last node in a linked list?

From last to first uses the same principle and utilizes the double linking nature of the list.


EDIT: Ahh, you have code ... code posted without code tags is bland. See http://www.cplusplus.com/articles/jEywvCM9/

Why is your traverse_tail() so different from traverse_head()?

Why do you change Tail in the traverse_head()?
Last edited on
Topic archived. No new replies allowed.