I have been working on this problem for four days and though I've made progress I still have not solved the problem. The quick and short of it is that I have a linked list that I am to appending nodes to. The linked list is made up of a derived class called CD. It is derived from a class called Media. The CD class has a member that is a linked list. I can get the nodes to append just fine, but when the program closes it throws an error telling me that it is trying to free memory that has already been freed. I have been studying copy constructors and copy assignment operators and have written both for Media class and CD class. I have a copy constructor for LinkList that I believe performs a deep copy of the linked list. I am struggling to write a copy assignment operator for it but I'm not sure I need one. If I do I will need help writing it because of all the examples I have seen few were correct and some I couldn't follow. I will post what I have for the copy constructors and copy assignment operators. I would really appreciate anyone looking them over and letting me know if they are incorrect. I will post whatever code anyone needs here or if someone is willing to run the program I have links to all the program files here:
EUREKA!!! IT WORKS!! Thank you cire, JLBorges, AbstractAnon and everyone else who helped me get this linked list to work. I learned a lot about linked list, copy constructors and assignement operators! Though frustrating it has also been fun!! Thanks again!!