Skip to Main Content
C++ Programming
book

C++ Programming

by Yuan Dong, Fang Yang, Li Zheng, Tsinghua University Tsinghua University Press
February 2019
Beginner content levelBeginner
504 pages
14h 34m
English
De Gruyter
Content preview from C++ Programming

9Collections and Their Organization

We have introduced basic data types and user-defined types (array, structures, etc.) in Chapters 2 and 6. Basic data types are predefined by the C++ compiler system, and user-defined data types consist of elements of base types and user-defined types. We call the data collections. In many cases, system-defined operations aren’t enough and user-defined operations are required to deal with specific problems. A collection class can be defined by encapsulating data and operations with the object-oriented method.

There are two types of collections: linear collections and nonlinear collections. A node in a linear collection can be specified by its position. It is possible to determine the order of the elements in ...

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

Mastering C++ Programming

Mastering C++ Programming

Jeganathan Swaminathan

Publisher Resources

ISBN: 9783110470666