C++头文件的包含顺序研究
作者:朱金灿 来源: http://www.cnblogs.com/clever101 一.《 Google C++ 编程风格指南》里的观点 最近公司在推行编码规范,领导提议基本上使用《 Google C++ 编程风格指南》。其中《 Google C++ 编程风格指南》对于头文件的包含顺序是这样的: Names and Order of Includes link ▽ Use standard order for readability and to avoid hidden dependencies: C library, C++ library, other libraries' .h, your project's .h. All of a project's header files should be listed as descendants of the project's source directory without use of UNIX directory shortcuts . (the current directory) or .. (the parent directory). For example, google-awesome-project/src/base/logging.h should be included as #include