O'Reilly logo

C++ All-in-One For Dummies, 3rd Edition by John Paul Mueller, Jeff Cogswell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required