May I know why this doesn't work? I've read the data from a file and when I print it, the entire list comes out, but it just couldn't print out the last data on the list..
a classic linked list of pointers, you would iterate the list until you hit the node where 'next' is 'null' and return that one. The STL list does this for you.