vector中erase()與insert()用法

erase()用法:https://blog.csdn.net/duan19920101/article/details/50717748.net

注:erase是刪除指定位置的元素,不能刪除給定元素值。若要刪除給定元素,必須經過<algorithm>中的find先找到要刪除元素位置,而後再調用erase。blog

insert()用法:https://blog.csdn.net/xiadasong007/article/details/4031184get

相關文章
相關標籤/搜索