C++ class header files organization
问题 What are the C++ coding and file organization guidelines you suggest for people who have to deal with lots of interdependent classes spread over several source and header files? I have this situation in my project and solving class definition related errors crossing over several header files has become quite a headache. 回答1: Some general guidelines: Pair up your interfaces with implementations. If you have foo.cxx , everything defined in there had better be declared in foo.h . Ensure that