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 ...
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.
Read now
Unlock full access