Chapter 6: Variables, Constants, and Arrays


Overview

Fundamental to C++ are the concepts of variables and constants. In algebra, a variable represents a quantity that changes or at least has the potential to change, whereas a constant represents something that does not change. This definition also applies in programming. This chapter examines variables and constants and considers their importance to programming. Specifically, this chapter discusses the following topics:

  • Data and information

  • Variable and constant data

  • Data types

  • Arrays




Introduction to Game Programming with C++
Introduction to Game Programming with C++ (Wordware Game Developers Library)
ISBN: 1598220322
EAN: 2147483647
Year: 2007
Pages: 225
Authors: Alan Thorn

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net