#include #include "vector.h" //#include using namespace std; int main() { cout << "----------Vector Declaration, push_back(), size(), and capacity()----------\n"; VectorDouble vec1, vec2(10);//declared an empty vector and vector with a 10 /* vector vec2(10);//declare a vector with ten elements*/ //check the size of the vectors //Size is the number of elements currently in the vector. cout << "Size of vector 1 -> " << vec1.size() << endl; cout << "Size of vector 2 -> " << vec2.size() << endl; cout << endl << endl; //check the capacity of the vectors //Use capacity() to find out how many elements would //fit in the currently allocated storage of a vector. cout << "Capacity of vector1 -> " << vec1.capacity() << endl; cout << "Capacity of vector2 -> " << vec2.capacity() << endl; cout << endl << endl; //check the contents of the vectors cout << "Contents of vector 1 -> " << endl; for (int i=0; i " << endl; for (i=0; i " << vec1.size() << endl; cout << "Size of vector 2 -> " << vec2.size() << endl; cout << endl << endl; //check the capacity of the vectors //Use capacity() to find out how many elements would //fit in the currently allocated storage of a vector. cout << "Capacity of vector 1 -> " << vec1.capacity() << endl; cout << "Capacity of vector 2 -> " << vec2.capacity() << endl; cout << endl << endl; //check the contents of the vectors cout << "Contents of vector 1 -> "; for (i=0; i "; for (i=0; i