A vector, in programming, is an array, generally associated with one-dimensional arrays. It is a contiguous storage area, which contains a series of elements of the same type and are distinguished from each other by an index. Read: fix.
Vector is also the C++ Standard Library class, which works as a dynamic array. The vector is one of many structures called containers (others are sets, maps, and lists).
It is implemented as a class template and can be initialized as a vector of integers, a vector of strings, a vector of instances of a user-defined class, etc.
♦ Read also: vector (informatics).
Doubts? needs more information? Write and we will respond to your email: click here