[Dev-C++] Organisation of header files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Michael S. <mic...@nu...> - 2003-07-08 20:59:09
|
Hi, I divide my classes in a .cpp-file and a header-file (as suggested). Now I=B4ve heard of 3 possibilities to organise the dependencies: 1. Include only one header file in the implementation file, and in this header file, beside the class declaration include all required headers 2. Include the header which are important for the public interface of the class in the .cpp-file, and those who are only important for the methods "inside" the class in its header file (sounds the most logical) 3. Don=B4t include any header-file in the class-header, but include them all in the .cpp-file (before the actual class-header) Which solution is the best? (Or perhaps a completely different solution) Thanks for your help!! |