Inserting Elements in a vector Using the push_back Method
#include <iostream> #include <vector> int main () { std::vector <int> v; // Insert sample integers into the vector v.push_back (50); v.push_back (1); v.push_back (987); v.push_back (1001); std::cout << v.size () << " Elements"; return 0; }