Source file inclusion
De cppreference.com
< cpp | preprocessor
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Inclut le fichier source autre dans le fichier source de courant sur la ligne immédiatement après la directive .
Original:
Includes other source file into current source file at the line immediately after the directive .
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Syntaxe
#include < filename>
|
(1) | ||||||||
#include " filename"
|
(2) | ||||||||
[modifier] Explication
Inclut le fichier source, identifiée par filename dans le fichier source de courant sur la ligne immédiatement après la directive .
Original:
Includes source file, identified by filename into the current source file at the line immediately after the directive.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
La première version de la directive cherche seulement standards répertoires include. La norme bibliothèque C + +, ainsi que bibliothèque standard C, est implicitement inclus dans répertoires standard inclus. La norme inclure des répertoires peut être contrôlé par l'utilisateur à travers les options du compilateur .
Original:
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 directories can be controlled by the user through compiler options.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
La deuxième version cherche d'abord le répertoire où réside le fichier en cours et, uniquement si le fichier n'est pas trouvé, cherche les répertoires standard inclus .
Original:
The second version firstly searches the directory where the current file resides and, only if the file is not found, searches the standard include directories.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Dans le cas où le fichier n'est pas trouvé, le programme est mal formé .
Original:
In the case the file is not found, program is ill-formed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.