In This Chapter
Working with conversions, consoles, and preprocessor directives
Manipulating constants, enums, and random numbers
Structuring your code with switch statements
Managing arrays of data
C++ has so much to offer that we thought we’d give you a mixture of advanced topics you can explore in C++. For starters, we talk a bit about some issues that are an essential part of C++ and are sure to become increasingly important as you advance in your programming career.
We have a task for a friend of ours. We want him to turn our refrigerator around and repair its compressor. We won’t give him any details about how to do this, and we don’t want him to look in a manual. Just grab the tools, go at it, and try to fix the thing. Now, doesn’t that sound like fun?
Unless he happens to be an expert on refrigeration devices, it’s doubtful that he’d get far, especially without hurting himself.
In computer ...