Chapter 4. COMPOUND TYPES

In this chapter you learn

  • How to create and use arrays

  • How to create and use strings

  • How to use the getline() and get() methods for reading strings

  • How to mix string and numeric input

  • How to create and use structures

  • How to create and use unions

  • How to create and use enumerations

  • How to create and use pointers

  • How to manage dynamic memory with new and delete

  • How to create dynamic arrays

  • How to create dynamic structures

  • About automatic, static, and dynamic storage

You've developed a computer game called User-Hostile in which players match wits with a cryptic and abusive computer interface. Now you must write a program that keeps track of your monthly game sales for a five-year period. Or you want to inventory your accumulation of ...

Get C++ Primer Plus, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.