string parsing

Tags:

istringstream iss(str); 
string s; 
while (iss >> s) 
  vec.push_back(s);