Chapter 7. Arrays and Vectors
Now go, write it before them in a table, and note it in a book.
To go beyond is as wrong as to fall short.
Begin at the beginning, ... and go on till you come to the end: then stop.
In this chapter you will learn:
To use the array data structure to represent a set of related data items.
To use arrays to store, sort and search lists and tables of values.
To declare arrays, initialize arrays and refer to the individual elements of arrays.
To pass arrays to functions.
Basic searching and sorting techniques.
To declare and manipulate multidimensional arrays.
To use C++ Standard Library class template vector.
7.3 Declaring Arrays
7.4 Examples Using Arrays
7.5 Passing Arrays to Functions
7.6 Case Study: Class GradeBook Using an Array to Store Grades
7.7 Searching Arrays with Linear Search
7.8 Sorting Arrays with Insertion Sort
7.9 Multidimensional Arrays
7.10 Case Study: Class GradeBook Using a Two-Dimensional Array
7.11 Introduction to C++ Standard Library Class Template vector
7.12 (Optional) Software Engineering Case Study: Collaboration Among Objects in the ATM System
Answers to Self-Review Exercises