C++ 字符串的分割函数split 及 用法

以前在C#中总用到字符串的分割,使用系统函数便可,好比:html string a = "This is a test";数组 string[] strArray = a.Split(' ');函数 在C++中string没有直接的分割函数,能够利用C的stroke函数封装一个分割方法:code vector<string> split(const string& str, const strin
相关文章
相关标签/搜索