C++ 預處理器會在所有編譯工作前執行。程式設計員能借給予預處理器指令去定義變數、替換文本、和檢驗簡單的條件式。
| # and ## | 文本相關指令 |
| #define | 定義預處理器變數 |
| #error | 輸出錯誤訊息 |
| #if, #ifdef, #ifndef, #else, #elif, and #endif | 條件陳述式 |
| #include | 附加其他代碼檔案的內容 |
| #line | 設定輸出時行數 |
| #pragma | 編譯器自訂功能 |
| #undef | 取消定義預處理器變數 |
| Predefined preprocessor variables | 其他內建預處理器變數 |