C++ · Vectors

vector basics

An array's size is fixed when you write the program; a vector grows while it runs, one reading at a time.