Chapter 9

Using Advanced C++ Features

In This Chapter

arrow Using comments

arrow Working with conversions, consoles, and preprocessor directives

arrow Manipulating constants, enums, and random numbers

arrow Structuring your code with switch statements

arrow 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.

Filling Your Code with Comments

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 ...

Get C++ All-in-One For Dummies, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.