[C++] Program for storing cross-references with linked lists, print doesn't work

Hi!

For an exercise I'm writing a program to store cross-references using linked lists. I've defined a class with common member functions to store the data and the program works in an interactive manner somewhat like GDB.

But I have two issues when working with this program that I really can't figure out:
The first and most major issue is that the function which should print out all references ( void operation_printallrefs ( ) ) doesn't work, it just doesn't print anything and I can't seem to find out why it won't.
The second issue is a tiny glitch: after my program calls void operation_add ( ) the prompt ( '>' ) gets printed two times. This is not a really big problem, but it's annoying and I don't know how to fix it.

Here is a pastebin for my source code ( if I embed it into this message the content is too long ):
http://pastebin.com/VA4JPi4c

Thanks in advance for your help ;)
I've fixed the second bug. The solution was to call std::cin.ignore at the end of the operation_add ( ) function.

I still didn't get any luck with the first bug though :(
I've got a weird issue with the print function: it only prints something if there's only 1 element in the linked list. You can read the new code here:

http://pastebin.com/pML5DsH6

Can anyone help with this? Thank you in advance ;)
Topic archived. No new replies allowed.