Please try CS202 Search engine to find a word. This is a short primer on vectors These notes mention some of the pre-packaged features of vectors. Quick Reference Vectors are good when we have an unknown sequence of similar items to store and we want to access them by their sequence numbers. The objects inside must all take up the same amount of storage. They are numbered starting with 0.
Vectors can therefore change size.
Vectors can be empty. There are a libraries that manipulate vectors that will be described later. Example Suppose that we want to input an unknown number of numbers and then print them out forwards and then backwards, using a vector. We will push ints onto the back of a vector called v . We will then print each item in v in turn.