vector

  • vector使用詳解之erase()

    一、erase()函數的概述 erase()函數是vector容器的一個成員函數,用於刪除(擦除)某些元素。該函數有兩個參數:要刪除元素的迭代器範圍。如果只提供一個迭代器,則被刪除…

    編程 2024-10-04