merlinzjl

导航

2020年9月12日 #

C++ 常用字符串分割split函数和trim函数

摘要: void split(const string &str, vector<string> &res, const char pattern) { istringstream is(str); string temp; while (getline(is, temp, pattern)) { if ( 阅读全文

posted @ 2020-09-12 20:35 merlinzjl 阅读(832) 评论(0) 推荐(1) 编辑