条件编译编译器根据条件的真假决定是否编译相关代码常见条件编译的方法根据宏是否定义#ifdef <macro>...#else...#endif举个例子 1 #include <stdio.h> 2 #define _DEBUG_ 3 int main(int argc,