How does chain of includes function in C++? -


  • in first.cpp put #include second.h.
    consequence first.cpp sees content of second.cpp.
  • in second.cpp put #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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -