include 和 include "" 的区别

来源:互联网 发布:防p2p限速软件 编辑:程序博客网 时间:2024/04/30 00:01

这个话题,看似简单,可是有多少程序员不看书就能回答正确呢,反正我是不能。

下面这一段写的很好,简洁明了。

 

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 whatever 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 along the path specified by the INCLUDE environment variable. 

 

原文地址http://topic.csdn.net/u/20071204/23/6952b986-361a-4f1b-b222-12404a3b0f4f.html

原创粉丝点击