![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
曾小z
这个作者很懒,什么都没留下…
展开
-
vector转换为带逗号分割的string
template<classT>std::stringParamsManager::VectorToString(std::vector<T>&vecData){std::stringstrData;for(autodata:vecData){strData+=std::to_string(data)+",";}strData=strData.subs...原创 2021-09-08 11:47:18 · 1093 阅读 · 1 评论 -
c++字符串切割
参考stackoverflow:voidParamsManager::Split(conststd::string&strParams,constchar&delimiter,std::vector<double>&vecTarget){std::istringstreamiStrParams(strParams);std::stringstrPart;while(std::getline(iStrPara...原创 2021-09-07 17:49:08 · 112 阅读 · 0 评论