【发布时间】:2013-08-16 19:13:38
【问题描述】:
- 在我的
first.cpp中我输入了#include second.h。
结果first.cpp看到了second.cpp的内容。 - 在
second.cpp我输入了#include third.h。
我的问题是:first.cpp会看到third.cpp的内容吗?
添加
我认为如果我包含 second.h,我将能够使用在 second.h 中声明并在 second.cpp 中描述(定义、编写)的函数。从这个意义上说,second.cpp 的内容对 first.cpp 可用
【问题讨论】:
-
为什么
first.cpp会看到second.cpp的内容? -
first.cpp将“看到”您在second.h中输入的任何内容,不多也不少。
标签: c++ include dependencies