erase()用法上

erase既可以刪除單個元素,也可以按區間刪除多個元素; ①首先刪除單個元素 我認爲erase在刪除vector時,是將地址一併刪除 正確例子: #include "stdafx.h" #include<stdio.h> #include<vector> using namespace std; int _tmain(int argc, _TCHAR* argv[]
相關文章
相關標籤/搜索