December 2001
Intermediate to advanced
1040 pages
23h 8m
English
In everyday life we commonly group similar objects into units. We buy peas by the can and eggs by the carton. In computer languages we also need to group together data items of the same type. The most basic mechanism that accomplishes this in C++ is the array. Arrays can hold a few data items or tens of thousands. The data items grouped in an array can be simple types such as int or float, or they can be user-defined types such as structures and objects.
Arrays are like structures in that they both group a number of items into a larger unit. But while a structure ...