#include #include #include using namespace std; int main() { vector v(3); //vector of three int's, each initialized to 0 cout << "size == " << v.size() << ", capacity == " << v.capacity() << "\n"; v.push_back(40); cout << "size == " << v.size() << ", capacity == " << v.capacity() << "\n"; v.push_back(50); v.push_back(60); cout << "size == " << v.size() << ", capacity == " << v.capacity() << "\n"; v.push_back(70); cout << "size == " << v.size() << ", capacity == " << v.capacity() << "\n"; return EXIT_SUCCESS; }