Skip to content

Instantly share code, notes, and snippets.

@rep-movsd
Last active May 16, 2016 19:12
A better tokenizer
vector<string> split2(string s)
{
vector<string> sRet;
istringstream iss(s);
string sWord;
while(iss >> sWord)
sRet.push_back(sWord);
return sRet;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment