istream& read(istream& in, vector<string>& word)
{
string x;
while (in >> x)
word.push_back(x);
in.clear();
return in;
}
I'm just wondering if there is an easy way of ending this loop?
or do i have to make a word, like 'end' to stop the loop?
- Newb IsNe -
Edited by IsNe, 26 April 2010 - 12:20 PM.


Sign In
Create Account


Back to top









