ファイルの読み込み【Including of files】

The #include command line can be placed anywhere in the program, but usually all inclusions are placed at the beginning of the source code. Call format:

#include コマンドラインをプログラムでは、どこにでも置くことができます、しかし、すべての読み込みはソース コードの先頭に配置されます。呼び出し書式は次のとおり

 

Examples:

例:

 

Preprocessor replaces this line with the content of the file WinUser32.mqh. Angle brackets mean that the WinUser32.mqh file will be taken from the default directory (usually terminal_directory\experts\include). The current directory is not searched.

プリプロセッサは、この行を WinUser32.mqh ファイルの内容に置き換えます。山括弧は、WinUser32.mqh ファイルを既定のディレクトリ (通常は terminal_directory\experts\include) から取得することを意味します。現在のディレクトリは検索されません。

If the file name is enclosed in quotation marks, the search will be performed in the current directory (where the main file of the source code is located). The standard directory is not searched in.

もし、ファイル名が引用符に囲まれている場合は、検索(ソース コードのメインファイルがある場所)は現在のディレクトリで実行されます。標準のディレクトリでは検索しません。

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">