Chapter 4. Compound Types
In this chapter you’ll learn about the following:
• How to create and use arrays
• How to create and use C-style strings
• How to create and use string
-class 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
Say 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 ...
Get C++ Primer Plus, Fifth 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.