C++ vector中实际删除元素使用的是容器vecrot中std::vector::erase()方法。
C++ 中std::remove()并不删除元素,因为容器的size()没有变化,只是元素的替换。
1.std::vector::erase()
函数原型:iterator erase (iterator position); //删除指定元素
iterator ...
分类:
编程语言 时间:
2014-09-07 02:13:14
阅读次数:
200
We all know about the legend oftower of Hanoi. It is said that the world will end after finishing the puzzle.What we don't know is another legend about when the world will end which is verifiedby the ...
分类:
其他好文 时间:
2014-09-06 17:26:13
阅读次数:
250