1 <!DOCTYPE HTML PUBLIC
"-//W3O//DTD W3 HTML 2.0//EN">
2 <!-- This collection of hypertext pages is Copyright 1995, 1996 by Steve Summit. -->
3 <!-- This material may be freely redistributed and used -->
4 <!-- but may not be republished or sold without permission. -->
7 <link rev=
"owner" href=
"mailto:scs@eskimo.com">
8 <link rev=
"made" href=
"mailto:scs@eskimo.com">
9 <title>section
4.11.1: File Inclusion
</title>
10 <link href=
"sx7k.html" rev=precedes
>
11 <link href=
"sx7m.html" rel=precedes
>
12 <link href=
"sx7.html" rev=subdocument
>
15 <H2>section
4.11.1: File Inclusion
</H2>
17 <p>The two syntaxes for
<TT>#include
</TT> lines can be used in various ways,
18 but very simply speaking,
19 <TT>""</TT> is for header files you've written,
20 and
<TT><></TT> is for headers which are provided for you
21 (which someone else has written).
23 </p><p>Deep sentences:
24 <blockquote><TT>#include
</TT> is the preferred way
25 to tie the declarations together
27 It guarantees that all the source files will be supplied with
28 the same definitions and variable declarations,
29 and thus eliminates a particularly nasty kind of bug.
31 when an included file is changed,
32 all files that depend on it must be recompiled.
33 </blockquote>That's the story on
<TT>#include
</TT>, in a nutshell.
37 <a href=
"sx7k.html" rev=precedes
>prev
</a>
38 <a href=
"sx7m.html" rel=precedes
>next
</a>
39 <a href=
"sx7.html" rev=subdocument
>up
</a>
40 <a href=
"top.html">top
</a>
43 This page by
<a href=
"http://www.eskimo.com/~scs/">Steve Summit
</a>
44 //
<a href=
"copyright.html">Copyright
</a> 1995,
1996
45 //
<a href=
"mailto:scs@eskimo.com">mail feedback
</a>