#include directive

Source file inclusion

Includes another source file into the current source file at the line immediately after the directive.

Syntax

#include <filename> (1)
#include "filename" (2)

Explanation

Includes source file, identified by filename, into the current source file at the line immediately after the directive.

The first version of the directive searches only standard include directories. The standard C++ library, as well as standard C library, is implicitly included in standard include directories. The standard include direct