#include <vector>
int main()
{
std::vector<int> my_ints; // Contains nothing.
// Add 1 "int" to "my_ints" and give it the value 50...
my_ints.push_back(50);
// Get the first element of "my_int"...
int temp(my_ints.at(0)); // Same as "my_ints[0]"
return(0);
}
See here: http://www.cplusplus.com/reference/stl/vector/