I am trying to write a program that demonstrates a linked list (yes it is homework). In the specs, the requirement is that the user is supposed to type the end of file character to signify when they are done entering names. I can get it to run perfectly if I have the user type in a signifying phrase ("DONE"), but I cant figure out the end of file part.
Here is the whole program:
Specifically, here is the part where I am reading in their input:
Any suggestions to point me in the right direction would be massively helpful.