How does chain of includes function in C++? -
- in
first.cppput#include second.h.
consequencefirst.cppsees content ofsecond.cpp. - in
second.cppput#include third.h.
my question is: first.cpp see content of third.cpp?
added
i thought if include second.h able use functions declared in second.h , described (defined, written) in second.cpp. in sense content of second.cpp becomes available first.cpp
you can think #include simple text insert. if include second.h "see" second.h , not second.cpp.
Comments
Post a Comment