Lesson 4. Managing Arrays and Strings

In previous lessons, you declared variables used to contain a single int, char, or string to mention a few instances. However, you may want to declare a collection of objects, such as 20 ints or a string of characters to hold a name.

In this lesson, you learn

Image What arrays are and how to declare and use them

Image What strings are and how to use character arrays to make them

Image A brief introduction to std::string

What ...

Get Sams Teach Yourself C++ in One Hour a Day, Eighth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.