/////////////////////////////////////////// // vector.cpp -- how do I use a vector? // /////////////////////////////////////////// #include #include using namespace std; void main() { vector v; v.push_back(0.50); // push-back operation will silently v.push_back(0.75); // allocate memory as needed to hold the v.push_back(1.00); // push_back entries v.push_back(1.25); cout << "\n the vector length is " << v.size() << "\n\n" << " it contains the elements "; int i; for(i=0; i