gpt4 book ai didi

c++ - stdafx.h 的用途

转载 作者:行者123 更新时间:2023-11-30 17:19:12 27 4
gpt4 key购买 nike

该文件的用途是什么 stdafx.h 以及预编译头是什么意思?

最佳答案

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++ 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

关于c++ - stdafx.h 的用途,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28931268/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com