K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
#include <iostream> #include <vector> using namespace std; int main() { vector<int> v(3, 10); v.push_back(20); v[0] = 30; cout << v.size() << " " << v.front() << endl; return 0; }
4 30
3 10
4 10
3 30