⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 include.dmr.html

📁 this is a mirrored site c-faq. thought might need offline
💻 HTML
字号:
<html><!-- Mirrored from c-faq.com/cpp/include.dmr.html by HTTrack Website Copier/3.x [XR&CO'2008], Sat, 14 Mar 2009 08:00:35 GMT --><head><title></title></head><body><!-- see &lt;339F1F51.23BF@oc.com&gt; -->From: Dennis Ritchie<br>Subject: Re: Quotes vs. angle brackets in #includes<br>Date: Tue, 13 May 1997 00:04:00 -0400<p>As others have doubtless noted, the actual standardas well as K&amp;R 2 are deliberately even more vagueabout this issue.   The standard presumably wantsto avoid forcing the existence of and defining thesemantics of directories, the notion of .., whether/ or \ or something else is used as a separatorin file names, etc. etc.<p>Most of the solutions people have come up withare presumably consistent with the standard andso the question is what is the most useful convention.I suppose there are two general theories about this.<p>One is that relative "..." includes are relative to the originalsource file, the other is that they are relative to the filein which they appear.  On the whole I have become persuadedthat the first interpretation is more useful and easierto understand.  It caters to the situation I've met mostfrequently, where one wants to compile some complicatedsystem from afar--source and associated headers in somedistant place, but I don't want to have to read themto discover their inclusion relationships.<p>Of course the systems that do have directories oftenimplement <TT>-I</TT> directives, which (depending on how youlook at it) either save you because you can controlthe search, or introduce further confusion because yousometimes have to figure out what <TT>-I</TT> things are needed.<p><blockquote>Dennis</blockquote></body><!-- Mirrored from c-faq.com/cpp/include.dmr.html by HTTrack Website Copier/3.x [XR&CO'2008], Sat, 14 Mar 2009 08:00:35 GMT --></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -