array
and vector
; Catching ExceptionsIn this chapter you’ll:
Use C++ Standard Library class template array
—a fixed-size collection of related data items.
Declare array
s, initialize array
s and refer to the elements of array
s.
Use array
s to store, sort and search lists and tables of values.
Use the range-based for
statement.
Pass array
s to functions.
Use C++ Standard Library function sort
to arrange array
elements in ascending order.
Use C++ Standard Library function binary_search
to locate an element in a sorted array
.
Declare and manipulate multidimensional array
s.
Use one- and two-dimensional array
s to build a real-world GradeBook
class.
Use C++ Standard Library class template vector
—a variable-size collection of related data items.