求一个 c 程序头文件包含的解决方法
一个c语言的源程序需要有条件的包含某头文件,该如何处理
程序代码:
#include <stdio.h>
#define INCLUDED 0
#if INCLUDED
#include <math.h>
#endif
#ifdef INCLUDED
#include <math.h>
#endif
int main(void)
{
double a = 0.0;
scanf("%lf", &a);
printf("%f", fabs(a));
return 0;
}
书上有 预编译指令 具体来说就是#if和#ifdef 具体看书罢









