O'Reilly logo

Sams Teach Yourself C++ in 24 Hours, Third Edition by Jesse Liberty

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

Hour 21. The Preprocessor

Most of your source code files are written in C++. Your source code files are translated by the compiler into machine code which is ready to be executed by the computer. Before the compiler runs, however, the preprocessor runs, and this provides an opportunity for conditional compilation. In this hour, you will learn

  • What conditional compilation is and how to manage it

  • How to write macros using the preprocessor

  • How to use the preprocessor in finding bugs

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