Chapter 6 - Arrays and vectors. In many programs, you need to collect large numbers of values. In standard C++, you use arrays and vectors for this purpose. arrays are a fundamental structure of the C++ language. the standard C++ library provides the vector construct as a more convenient alternative when working with collections whose size is not fixed. In this chapter, you will learn about arrays, vectors, and common algorithms for processing them.