+ -
当前位置:首页 → 问答吧 → 编译时,头文件的顺序有影响吗?

编译时,头文件的顺序有影响吗?

时间:2010-08-17

来源:互联网

就是说,
  1. #include "head_01.h"
  2. #include "head_02.h"
复制代码
  1. #include "head_02.h"
  2. #include "head_01.h"
复制代码
之间有没有什么区别?

作者: fender0107401   发布时间: 2010-08-17

要说没影响那也是假的
比如一些宏的定义

但好的代码不应该出现这种情况

作者: lenky0401   发布时间: 2010-08-17