文件 stdafx.h
的用途是什么?预编译头是什么意思?
stdafx.h
是一个文件,由Microsoft Visual Studio IDE 向导,描述了两个标准系统和项目特定的包含文件经常使用但很少使用的不断变化.兼容的编译器(例如,Visual C++ 6.0 和更新版本)将预编译这个文件以减少总体编译时间.
stdafx.h
is a file, generated by Microsoft Visual Studio IDE wizards, that describes both standard system and project specific include files that are used frequently but hardly ever change. Compatible compilers (for example, Visual C++ 6.0 and newer) will pre-compile this file to reduce overall compile times.
Visual C++ 将在编译之前不要编译任何东西#include "stdafx.h"
在源文件中,除非编译选项/Yu'stdafx.h'
未选中(通过默认);它假定所有代码在源至并包括该行已经编译好了.
Visual C++ will
not compile anything before the
#include "stdafx.h"
in the source file, unless the compile option
/Yu'stdafx.h'
is unchecked (by
default); it assumes all code in the
source up to and including that line
is already compiled.
http://en.wikipedia.org/wiki/Precompiled_header
这篇关于stdafx.h 的用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!