Guest_imported
New member
- Jan 1, 1970
- 0
hi,
in a cicular link list, lets say I got
5 value stored. Each node has two links which points to the next and to the previous. Also the link is closed in
a sense that the last node has a link pointing to the first
node instead of setting it to NULL.
-Since this goes around, when I want to print out all the values how does C++ know when to stop, since there is no NULL?
-Do I have to count every value that is entered and use that total count in a loop to compare when I want to print out?
thankx i advance.
in a cicular link list, lets say I got
5 value stored. Each node has two links which points to the next and to the previous. Also the link is closed in
a sense that the last node has a link pointing to the first
node instead of setting it to NULL.
-Since this goes around, when I want to print out all the values how does C++ know when to stop, since there is no NULL?
-Do I have to count every value that is entered and use that total count in a loop to compare when I want to print out?
thankx i advance.