1, 字符串的分割算法(标准库版)
void split(const string& s,char c,vector<string>& v)
{
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)