C语言头文件

[1]格式

  • 库文件 #include

  • 自定义文件 #include "filename" [2] 如何避免多个相同的头文件重复包含

[2]条件编译

  #include <stdio.h>
  #include "test.h"
  #include "test.h"
  int main()
  {
  return 0;
  }
  //其中test.h作出以下宏定义和条件编译代码
  #ifndef enen
  #define enen
  #endif
全部评论

相关推荐

看起来名字可以很长:笑死 我暑期实习阿里云的意向也被 qq 邮箱放在垃圾箱了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务