1. Vector Constructor
vector<int> myVector;
vector<long> myVector(elementNo);
vector<float> myVector(elementNo, value);
2. Accessing elements of a vector
//safe access version, check bounds
myVector.at(index);
//unsafe access version
myVector[index]; // not check bounds
myVictor.size(); //returns the number of elements in myVector;
myVictor.capacity() //returns how much myVictor can hold;
myVictor.max_size(); returns the maximum number of elements the container can hold. it determined by system.
4. Insert/Delete elements
myVector.push_back(const TYPE& val);
//adding a single element to the end of a vector.
myVector.pop_back(); //remove a single element from the end of a vector