c++ std::vector<std::string> 操作
时间:2021-09-04 05:48:42
收藏:0
阅读:47
知识点
1 std::vector<std::string> 作为返回参数
void GetConfigState(std::vector<std::string>&vtTemp)
2 对于std::vector<std::string>取值操作
std::vector<std::string>::iterator theIterator;
for( theIterator = vtTemp.begin(); theIterator != vtTemp.end(); theIterator++ )
cout<<theIterator->c_str()<<endl;//这样取值
3 不能直接进行容器间赋值
原文:https://www.cnblogs.com/lockingball/p/15221966.html
评论(0)