c++ vector add element

C++
std::vector<int> v;
v.push_back(10);
Source

Also in C++: