6.2 Variables


6.2 Variables

The opposite of a constant is a variable. Variables can change or have the potential to change. The color of a bus, the position of a person, the current room temperature-these are all examples of variables, or quantities that change. So, a variable is a quantity that, unlike a constant, has the potential to change throughout the duration of a program.




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