Chapter 10. Arrays


When you play most games, you're typically attacked by hordes of hostile aliens, trolls, pushy insurance salespeople, or whatever. For each individual character, your game must declare a variable. That can add up to a lot of variables. Wouldn't it be nice if C++ offered an easy way to declare a group of variables all of the same type? Well, as a matter of fact, C++ provides arrays for just that purpose.



Creating Games in C++(c) A Step-by-Step Guide
Creating Games in C++: A Step-by-Step Guide
ISBN: 0735714347
EAN: 2147483647
Year: N/A
Pages: 148

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