Inserting words into an array
I am trying to scan a list of words from a file. The list is as follows:
Each subsequent word is on a new line. I'm trying to insert each word into an array, however, the code that I have only inserts the very first word - that's it.
So the ouput would only be: Hello
void Array :: put()
in >> a.buffer;
cout << a.buffer;
How can I modify this portion of my code to have it insert the entire list of words?