First focus on the add function, and step through it as though you were the computer adding nodes. Think about how the list works: when you insert elements, what pointers need to be set? A simple...
Type: Posts; User: copeg
First focus on the add function, and step through it as though you were the computer adding nodes. Think about how the list works: when you insert elements, what pointers need to be set? A simple...
For future reference, please use the code tags (see the announcements post at the top of every forum for instructions).
What exactly are you having trouble with? Does this compile? Do you get...