Header file Inclusion

Hi

Which is the better way to include header files. Suppose I have a project containing Example.h and Example.cpp file. Which needs four header file.

HeaderFile_1.h
HeaderFile_2.h
HeaderFile_3.h
HeaderFile_4.h

Is the good to include all these header file in Example.h or in Example.cpp file, If the Example.h does not need any of these header file during compilation I mean to say all these header file are used in Example.cpp file.

Any advice will be greatly appreciated and will be helpful to me!

Thanks!!
Only include them in Example.cpp, of course.
Why on earth would you create unnecessary compile dependencies on purpose?
Topic archived. No new replies allowed.