Skip to Content
Object-Oriented Programming in C++, Fourth Edition
book

Object-Oriented Programming in C++, Fourth Edition

by Robert Lafore
December 2001
Intermediate to advanced
1040 pages
23h 8m
English
Sams
Content preview from Object-Oriented Programming in C++, Fourth Edition

Chapter 7. Arrays and Strings

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Object-Oriented Programming with C++

Object-Oriented Programming with C++

A.K. Sharma

Publisher Resources

ISBN: 0672323087Purchase book