C++ 中std::remove()并不删除元素,因为容器的size()没有变化,只是元素的替换。 1.std::vector::erase(). 函数原型:iterator erase (iterator position); //删除指定元素.
確定! 回上一頁