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 1. Types, Variables, and Standard I/O: Lost Fortune

Game programming is demanding. It pushes both programmer and hardware to their limits. But it can also be extremely satisfying. In this chapter, you’ll be introduced to the fundamentals of C++, the standard language for AAA game titles. Specifically, you’ll learn to:

  • Display output in a console window

  • Perform arithmetic computations

  • Use variables to store, manipulate, and retrieve data

  • Get user input

  • Work with constants and enumerations

  • Work with strings

Introducing C++

C++ is leveraged by millions of programmers around the world. It’s one of the most popular languages for writing computer applications—and the most popular language for writing big-budget computer games.

Created by Bjarne Stroustrup, ...

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