11.8 Conclusion


11.8 Conclusion

The underlying points discussed in this chapter hold true for many aspects of programming as well as in the context of strings. Specifically, loops can be seen to have powerful applications for many forms of arrayed data, whether strings or numbers or anything else that can be ordered and itemized. The valuable and powerful loop construct in combination with dynamic object creation using the new keyword-and deletion with the delete keyword-begins to demonstrate the true power of programming and its importance to games. The new and delete keywords can be used to create and destroy objects of all kinds and data types, including a programmer's own classes. To round off our exploration of programming, the intricacies of data storage should be considered. The next chapter therefore aims at explaining how data such as numbers and strings can be saved to and loaded from files.




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