/**
* line 源字符串
* split 切分字符串
* strVec 切分后的字符串存放的向量
*/
void strSplit(const string &line, const string &split, vector<string> &strVec) {
size_t found;
size_t last_pos = 0;
found = line.find(split);
while (found != string::npos) {
string s = line.substr(last_pos, found - last_pos);
last_pos = found + split.length();
found = line.find(split, last_pos);
if (s.compare("") == 0) continue;
strVec.push_back(s);
}
if (line.substr(last_pos).length() > 0)
strVec.push_back(line.substr(last_pos));
}