C++: 组织好include

头文件分库组织, 先保含通用库, 然后第三方库, 然后本程序的Util之类, 最后具体的类

代码
//----------------------------------------------------
// 平台
#include <windows.h>  
//----------------------------------------------------
// STL
#include <string>
#include 
<vector>
//----------------------------------------------------
// 第三方
#include <boost/foreach.hpp>
//----------------------------------------------------
#include <CppTk/Common/Logging/Logging.h>
#include 
<CppTk/Common/WindowsFileVersionInfoReader.h>
//----------------------------------------------------
// 本程序通用
#include "Util.h"
#include 
"VclUtil.h"
#include 
"App.h"
//----------------------------------------------------
// 本程序具体
#include "Student.h"
#include 
"Record.h"
//----------------------------------------------------
原文地址:https://www.cnblogs.com/mrfangzheng/p/1957216.html