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
相關文章
相關標籤/搜索