Section E.2 #include Preprocessing Directive

  • All preprocessing directives begin with # and are processed before the program is compiled.

  • Only whitespace characters may appear before a preprocessing directive on a line.

  • The #include directive includes a copy of the specified file. If the filename is enclosed in quotes, the preprocessor begins searching in the same directory as the file being compiled for the file to be included. If the filename is enclosed in angle brackets (< and >), the search is performed in an implementation-defined manner.

Section E.3 #define Preprocessing Directive: Symbolic Constants

  • The #define preprocessing directive is used to create symbolic constants and macros.

  • A symbolic constant is a name for a ...

Get C++ How to Program, 10/e 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.