To use Vectors in C++, the “vector” header must be included in your program to access its related functions and methods. Once included, you can create and initialize a vector like any other standard container. Memory allocation occurs automatically as elements of the vector are added or removed throughout its lifetime.
read more..