Difference between writing #import <filename.h> and #import “filename.h” i.e written the file name in angular brackets and quotes? [duplicate]

隐身守侯 提交于 2019-11-28 06:31:06

问题


Possible Duplicate:
what is the difference between #include <filename> and #include “filename”

Difference between writing #import and #import "filename.h" i.e written the file name in angular brackets and quotes?


回答1:


Quoted form This form instructs the preprocessor to look for include files in the same directory of the file that contains the #include statement, and then in the directories of any files that include (#include) that file. The preprocessor then searches along the path specified by the /I compiler option, then along paths specified by the INCLUDE environment variable.

Angle-bracket form This form instructs the preprocessor to search for include files first along the path specified by the /I compiler option, then, when compiling from the command line, along the path specified by the INCLUDE environment variable.

Source http://msdn.microsoft.com



来源:https://stackoverflow.com/questions/3156432/difference-between-writing-import-filename-h-and-import-filename-h-i-e-wri

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!