Content deleted Content added
No edit summary Tags: Mobile edit Mobile app edit iOS app edit App section source |
|||
Line 114:
To include the content of one file into another, the preprocessor replaces a line that starts with <code>#include</code> with the content of the file specified after the directive. The inclusion may be logical in the sense that the resulting content may not be stored on disk and certainly is not overwritten to the source file. The file being included need not contain any sort of code, as this directive will copy the contents of whatever file is included in-place, but the most typical use of <code>#include</code> is to include a header file (or in some rarer cases, a source file).
In the following example code, the preprocessor replaces the line <code>#include <stdio.h></code> with the content of the standard library header file named '{{mono|stdio.h}}' in which the [[Function (computer programming)|function]] <code>printf()</code> and other symbols are declared.
<syntaxhighlight lang="cpp">
|