First off, this is for homework and I mearly want a shove in the right direction. If its with a nudge or a dump truck makes no nevermind to me.
What I want to do is have a class member function that reads a file into a doubly linked list. I am curious on a few points.
1. Should my function parameter look something like this?
void readFile (const ifstream & inData); if not, please advise
2. For input of this nature, should it be arranged in any specific way? If, for example, each node has a string and an integer.
3. Function will replace current list if one exists, is there anything I need to be careful of?
If there is any tutorials that could help, I would be appreciative.
I thank you all in advance for taking a look at my problem