O'Reilly logo

Beginning C++ Through Game Programming, Fourth 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 6REFERENCES: TIC-TAC-TOE

The concept of references is simple, but its implications are profound. In this chapter, you’ll learn about references and how they can help you write more efficient game code. Specifically, you’ll learn to:

images Create references

images Access and change referenced values

images Pass references to functions to alter argument values or for efficiency

Return references from a function for efficiency or to alter values

USING REFERENCES ...

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