2015年9月6日

stl容器中的元素删除方法

摘要: STL中元素的删除方法:问题描述:对于容器:container c;要删除其中元素值为1的元素。container为一类容器。1、 连续内存的容器(vector、deque或string)采用erase-remove方法c.erase(remove(c.begin(), c.end(), 1),c.... 阅读全文

posted @ 2015-09-06 22:45 chhy2009 阅读(190) 评论(0) 推荐(0) 编辑

导航