I've the concept of this down and by appearances it looks like my code should work(at least the debugger shows that it should work when I run it). However when I run it, the original list is shown without the new nodes on the back of the list. Here's my push_back()
I probably have this written completely wrong but I'm working on a pop_back() so that I can remove the last node from the list. This is what is required for the function
A pop_back function that removes the last node from the list, and returns a pointer to this node. Important, do not delete the node in this function. Simply unlink it from the list.
I get the idea of a new pointer pointing to the last node and setting the original pointer to NULL. I'd appreciate it if someone could help me out here.
Also does anyone know of a good forum to post help ?s to for LC-3 programming?