4. Compound Types
In this chapter you’ll learn about the following:
• Creating and using arrays
• Creating and using C-style strings
• Creating and using string-class strings
• Using the getline() and get() methods for reading strings
• Mixing string and numeric input
• Creating and using structures
• Creating and using unions
• Creating and using enumerations
• Creating and using pointers
• Managing dynamic memory with new and delete
• Creating dynamic arrays
• Creating dynamic structures
• Automatic, static, and dynamic storage
• The vector and array classes (an introduction)
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 that keeps ...
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