积极答复者
VS2010里面用向导添加的代码文件, 只能用#include "xxx.h" 而不能用c++标准的尖括号...

问题
答案
-
#include <...>则先去系统目录中找头文件,如果没有在到当前目录下找。
#include "..."则首先在当前目录下寻找,如果找不到,再到系统目录中寻找。- The #include <...> method of file inclusion is often used to include standard headers such as stdio.h or stdlib.h. This is because these headers are rarely (if ever) modified, and they should always be read from your compiler’s standard include file directory.
- The #include "..." method of file inclusion is often used to include nonstandard header files that you have created for use in your program. This is because these headers are often modified in the current directory, and you will want the preprocessor to use your newly modified version of the header rather than the older, unmodified version.
- 已编辑 VisualElevenModerator 2012年1月30日 10:28
- 已标记为答案 唬紧掏 2012年1月30日 12:44
全部回复
-
#include <...>则先去系统目录中找头文件,如果没有在到当前目录下找。
#include "..."则首先在当前目录下寻找,如果找不到,再到系统目录中寻找。- The #include <...> method of file inclusion is often used to include standard headers such as stdio.h or stdlib.h. This is because these headers are rarely (if ever) modified, and they should always be read from your compiler’s standard include file directory.
- The #include "..." method of file inclusion is often used to include nonstandard header files that you have created for use in your program. This is because these headers are often modified in the current directory, and you will want the preprocessor to use your newly modified version of the header rather than the older, unmodified version.
- 已编辑 VisualElevenModerator 2012年1月30日 10:28
- 已标记为答案 唬紧掏 2012年1月30日 12:44