Source file inclusion
Da cppreference.com.
< cpp | preprocessor
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Include altro file di origine in file di origine corrente alla riga immediatamente dopo la direttiva.
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.
[modifica] Sintassi
#include < filename>
|
(1) | ||||||||
#include " filename"
|
(2) | ||||||||
[modifica] Spiegazione
Include file di origine, identificata dal filename nel file di origine corrente alla riga immediatamente dopo la direttiva.
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 prima versione della direttiva cerca solo directory standard di inclusione. La libreria standard C + +, così come libreria standard C, è implicitamente inclusa nella norma includere le directory. Lo standard include le directory può essere controllato dall'utente tramite le opzioni del compilatore.
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 seconda versione cerca in primo luogo la directory in cui risiede il file corrente e, solo se il file non viene trovato, cerca la norma includere le directory.
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.
Nel caso in cui il file non viene trovato, il programma è mal formato.
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.