So I'm having an issue progressing in this program I'm trying to write for class where I have to write the implementation for it. I get what I have to do according to the header provided, but I'm having the most trouble with this fillWordList function.
1 2 3
void fillWordList(string source[], int &sourceLength);
// read a text file from standard in and add all
// space-separated words to the word list wl