标签:mes turn div pop std span col for cto
#include <iostream> #include <vector> using namespace std; int main () { vector<int> myints; cout << "0. size: " << myints.size() << ‘\n‘; for (int i=0; i<10; i++) myints.push_back(i); cout << "1. size: " << myints.size() << ‘\n‘; myints.insert (myints.end(),10,100);//起始位置,长度,填充元素 cout << "2. size: " << myints.size() << ‘\n‘; for (int i=0; i<20; i++) cout << myints[i]<<" "; myints.pop_back(); cout << "\n3. size: " << myints.size() << ‘\n‘; return 0; }
标签:mes turn div pop std span col for cto
原文地址:https://www.cnblogs.com/sea-stream/p/10107814.html