How to Include
The preprocessor allows you to include the contents of one file
in another. This is performed using the #include
statement.
- OPTION 1: If the name of the file to be included is enclosed
in angle brackets < >, the compiler
will search a standard list of directories for the file you wish
to include; you can add entries to this list with the compiler
flag -I.
- OPTION 2: If the name of the file is in quotes "
", it will search the current directory for the files in
addition to the other directories.
#include <math.h>
#include <stdio.h>
#include "MyHeader.H"
|