O'Reilly logo

C++ Primer Plus by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required