O'Reilly logo

Beginning C++ Through Game Programming, Third Edition by Michael Dawson

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

Chapter 3. For Loops, Strings, and Arrays: Word Jumble

You’ve seen how to work with single values, but in this chapter you’ll learn how to work with sequences of data. You’ll learn more about strings—objects for sequences of characters. You’ll also see how to work with sequences of any type. And you’ll discover a new type of loop that’s perfect for use with these sequences. Specifically, you’ll learn to:

  • Use for loops to iterate over sequences

  • Use objects, which combine data and functions

  • Use string objects and their member functions to work with sequences of characters

  • Use arrays to store, access, and manipulate sequences of any type

  • Use multidimensional arrays to better represent certain collections of data

Using for Loops

You met one type of loop ...

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