diff --git a/docs/notes/02_c-leap/06_xdx/index.md b/docs/notes/02_c-leap/06_xdx/index.md index 53c03d7..765d249 100644 --- a/docs/notes/02_c-leap/06_xdx/index.md +++ b/docs/notes/02_c-leap/06_xdx/index.md @@ -679,4 +679,10 @@ int main() { -# 第六章:条件编译 \ No newline at end of file +# 第六章:条件编译 + +## 6.1 概述 + +* 现在需要开发一个 C 语言程序,要求在 Windows 上的控制台的颜色是红色,而在 Linux 上的控制台的颜色是默认颜色,怎么办? +* Windows 上的宏是 `_WIN32`,而 Linux 上预定义宏是 __linux__ +