摘要:
// erasing from vector#include <iostream>#include <vector>using namespace std;int main (){ unsigned int i; vector<unsigned int> myvector; // set some values (from 1 to 10) for (i=1; i<=10; i++) myvector.push_back(i); // erase the 6th element myvector.erase (myvector.begin()+5); 阅读全文