Hello. I have been working on a homework assignment for a couple of days now; have looked here and at a couple of other sites, but am still stuck. Below is my code to date. Could someone please point me in the right direction? What am I missing? Thanks in advance for any advice.
The question: Read in a sequence of numbers and build a linked list using the pointer type.
Thanks for the pointers (no pun intended)! I'm still getting a bit of odd output, it's not only printing the sequence, but also the next number in the chain. Example: if the input is
12 2 11 56 23, the output is 6 0 12 2 11 56 23. Interesting...