#include <iostream> #include <vector> using namespace std; int main() { vector<int> v = {100,101,102,103,104,105,106}; v.erase(v.begin()+2, v.begin()+4); for(auto x: v) cout << x << ' '; }
100 101 104 105 106
CC-BY-SA 3.0 · Powered by MediaWiki
개인정보처리방침 · ABOUT