Why place headers in a separate directory? [duplicate]
问题 This question already has answers here : Separate “include” and “src” folders for application-level code? [closed] (10 answers) Closed 3 years ago . I know that it is common in C/C++ projects to place header files in a directory such as include and implementation in a separate directory such as src . I have been toying with different project structures and am wondering whether there any objective reasons for this or is it simply convention? 回答1: Convention is one of the reasons - most of the