remove1 erase https://cho001.tistory.com/164 C++ 벡터 특정 원소 지우는 방법 vector.erase(),remove() 등 Tips 1. Erase를 활용하는 방법 벡터 v에서 i번째 원소를 삭제하고 싶다면 erase 함수를 사용하면 된다. erase 함수의 인자는 iterator 즉, 지우고 싶은 원소의 주소이다. http://www.cplusplus.com/reference/vector/v.. cho001.tistory.com https://modoocode.com/240 C++ 레퍼런스 - string 의 erase 함수 modoocode.com iterator erase(const_iterator position); iterator erase(const_iterator first, .. 2021. 11. 6. 이전 1 다음