2021年11月9日

C++ string字符串按分隔符分割成一个数组(转)

摘要: C++的string类型可以很方便的操作字符串,但是在使用中发现不支持Split,为了满足使用的需要,我自己写了一个分割函数。 #include <string> #include <vector> using std::string; //使用string对象 using std::vector; 阅读全文

posted @ 2021-11-09 15:05 xihong 阅读(305) 评论(0) 推荐(0) 编辑

导航