Workshop


The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice. The answers to the quiz can be found in Appendix A, "Quiz Answers."

Quiz

1:

What's a handle?

2:

What problem does Hungarian notation attempt to solve?

3:

What standard Win32 function is akin to the main() function in traditional C/C++ programs?

4:

What header file is required as an import into all Windows programs?

Exercises

  1. Use Hungarian notation to come up with variable names for the following variables : an integer that stores the score of a game, a string that stores the name of a color , and a Boolean that keeps track of whether a player in a game is alive .

  2. Change the text displayed in the WM_PAINT message handler in the Skeleton application, and then rebuild and run the program to see the different results.



Sams Teach Yourself Game Programming in 24 Hours
Sams Teach Yourself Game Programming in 24 Hours
ISBN: 067232461X
EAN: 2147483647
Year: 2002
Pages: 271

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