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