Chapter 5: Storing and Retrieving Data in Memory


OVERVIEW

One of the primary purposes of a computer is to process information. When you interact with an application, it must process the information that you supply to it and the actions you tell it to perform. To work with this information, the application must store it in various ways so that it can retrieve it later, change it, or make decisions based on it. In this chapter, you learn about this aspect from a programming point of view. You learn how to store and retrieve data in memory using variables, constants, and complex data types such as arrays and structures.

This chapter also covers a few other areas, such as how to create more professional, readable code with comments, and more details on how to work with the ProgressBar control. In addition, you get the chance to work on a new game project, a game called The Story of Mighty Molly.

In this chapter, you learn the following:

  • How to define constants, variables, structures, and arrays

  • How to properly specify data types

  • How to convert data from one type to another

  • How to specify variable scope




Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
ISBN: 735615381
EAN: N/A
Year: 2005
Pages: 131

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