【Visual Studio】Error: forget to add '#include "stdafx.h"' to your source (转)

原文转自 http://www.cnblogs.com/qunews/articles/2200313.html

【问题原因】在编译时使用了预编译头文件,

【解决方法】Project-->Property-->Configuraton Properties-->C/C++-->Precompiled Header-->Precompiled Header-->Not Using Precompiled Headers

原文地址:https://www.cnblogs.com/happykoukou/p/5997356.html