Quote:
Originally Posted by formerScientist
if you want the newline to represent your delimeter you'll have to use the std::getline function to read a line of text at a time.
|
Or if you need to stick with the regular stream operator (and your names will always be in the form First Last) you can just read in two at a time, concatenate them, and store the result string in your vector.
Bingle