So the actual text file that will be used with the program is a lot larger but for now I'm using a small 12 line .txt file. The program is supposed to be creating a sorted linked list, but it always adds an extra item just containing the last line in the key position and the author and title blank. The code is supposed to have a database of articles with their key,author, and title.
Here's a few pieces of the code.(it's not having a problem sorting, I don't think. I overloaded the comparison operators):
IN main.cpp: ifstream read;