THE IDEA
Understand the concept
std::vector is a standard-library container that grows as items are added. Its elements are ordered and can be accessed by index, while size() reports the number of stored elements.
WORKED EXAMPLE

LESSON 06 ยท C++
A vector stores a resizable, ordered collection of values.
THE IDEA
std::vector is a standard-library container that grows as items are added. Its elements are ordered and can be accessed by index, while size() reports the number of stored elements.
WORKED EXAMPLE