Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Instructions processed by the preprocessor BEFORE the actual compilation starts. They always begin with a hash # symbol.
#includeInserts the contents of a header file into the current file.
#defineCreates a macro (text substitution) or constant.
#ifdef / #ifndefConditional compilation based on whether a macro is defined.
#pragmaCompiler-specific instructions (e.g., #pragma once).
Preprocessor directives are NOT C++ statements. Do NOT put a semicolon ; at the end of them.