#include #include #include #include using namespace std; int main() { vector change { 20, 40, 60, 80, 100, 120 }; vector::size_type count {change.size()}; //number of elements in the vector cout << "The vector was born holding these " << count << " ints:\n"; for (int i {0}; i < count; ++i) { cout << i << " " << setw(3) << change[i] << "\n"; } cout << "\n"; change.push_back(160); count = change.size(); cout << "Now the vector holds these " << count << " ints:\n"; for (int i {0}; i < count; ++i) { cout << i << " " << setw(2) << change[i] << "\n"; } return EXIT_SUCCESS; }