Chapter 29. Tapping Further into the Preprocessor

Congratulations! You are nearly done with an intensive introduction to C++. By now, you should have a solid understanding of C++, but in modern programming there is always more to learn. This final lesson fills in some missing details and then sets the course for continued study.

Most of what you write in your source code files is C++. This is interpreted by the compiler and turned into your program. Before the compiler runs, however, the preprocessor runs, and this provides an opportunity for conditional compilation.

In this lesson, you will learn

  • What conditional compilation is and how to manage it

  • How to use the preprocessor in finding bugs

  • How to manipulate individual bits and use them as flags ...

Get Sams Teach Yourself C++ in One Hour a Day, Sixth 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.