天天看点

C语言复习(八)---头文件的高级操作

使用头文件导入库函数和宏定义时,通常使用<code>#include&lt;stdio.h&gt;</code>或<code>#include"my_library"</code>来导入编译器自带的函数或自己编写的函数

使用<code>#ifndef</code>来实现只引用一次的作用

ex

使用<code>#if</code>,<code>#elif</code>和<code>#else</code>嵌套可以得到条件引用的效果

ex: