string::size_type i = 0;
string::size_type j = s.find(c);
while (j != string::npos) {
v.push_back(s.substr(i, j-i));
i = ++j;
j = s.find(c, j);
if (j == string::npos)
v.push_back(s.substr(i, s.length( )));
}
return v.size();
}
reference
"Let them hate me, so that they fear me" - Caligula 41AD
5 comments:
upssss..........
You were visited with remarkable idea
Like attentively would read, but has not understood
What excellent words
All not so is simple, as it seems
I advise to you to come on a site where there is a lot of information on a theme interesting you. Will not regret. Hot Health
Post a Comment