vector
🚅 Dynamic array in C++ STL that grows automatically
Resizable array template in C++ STL.
中文对照 · Chinese
🚅 会根据乘客数量自动加挂车厢的高铁
C++ 最常用的容器 `vector<int> v;`,用 `v.push_back(x)` 自由添加元素。
Code example
vector<int> v = {1, 2, 3};
v.push_back(4);Explore 100 bilingual word cards →