Translations of this page?:

Preprocessor Commands

The C++ preprocessor runs before any other compilation happens. Commands given to the preprocessor allow the programmer to define variables, perform text substitution, and test simple conditions.

# and ##manipulate strings
#define定義巨集
#error顯示一個錯誤訊息
#if, #ifdef, #ifndef, #else, #elif, and #endif條件式編譯
#include插入其他檔案的內容(通常是載入附檔名為.h的標頭檔)
#lineset line and file information
#pragmaimplementation specific command
#undef取消已定義的巨集
Predefined preprocessor variablesmiscellaneous preprocessor variables
 
• • • SitemapRecent changesRSScc