- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 std::map find insert
<br /> std::map<uint32_t, uint32_t> myhonormap = oDstProfile.GetHonorType();<br /> for(std::map<uint32_t,uint32_t>::const_iterator it = oSrcProfile.GetHonorType().begin(); it != oSrcProfile.GetHonorType().end(); it++)<br /> {<br /> DEBUG_
2011-04-15 10:41:00 1579
原创 c++ string 去掉所有空格
<br /><br /> //去掉sNewTag中所有空格<br /> int begin = 0;<br /> begin = sNewTag.find(" ",begin); //查找空格在str中第一次出现的位置<br /> while(begin != -1) //表示字符串中存在空格<br /> {<br /> sNewTag.replace(begin, 1, ""); // 用空串替换str中从begin开始
2011-04-07 11:05:00 18759
原创 c++ string 按空格分开后保存到vector,vector 查找删除
#include #include #include int main (){ std::string orgTags ="宅 ccc 中文试试 hahah"; //std::string orgTags ="没有空格"; std::string sTags = orgTags; std::cout std::vector m_VecTag; int pos = 0; std::string substring = sTags; for(; (pos = s
2011-04-01 14:38:00 4809
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人