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 4. The Standard Template Library: Hangman

So far you’ve seen how to work with sequences of values using arrays. But there are more sophisticated ways to work with collections of values. In fact, working with collections is so common that part of standard C++ is dedicated to doing just that. In this chapter, you’ll get an introduction to this important library. Specifically, you’ll learn to:

  • Use vector objects to work with sequences of values

  • Use vector member functions to manipulate sequence elements

  • Use iterators to move through sequences

  • Use library algorithms to work with groups of elements

  • Plan your programs with pseudocode

Introducing the Standard Template Library

Good game programmers are lazy. It’s not that they don’t want to work; it’s ...

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