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