Post the code which
- creates nodes
- adds them to the list
- prints the list.
There's nothing strange when it's implemented correctly, so I'm just going with there are bugs in your code.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005