string parsing

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

Post a Comment

Your email is never published nor shared.

Spam protection by WP Captcha-Free