|
String constant is a sequence of ASCII-code characters enclosed in double quotes: "Character constant".
文字列定数はダブルクォートに囲まれた ASCIIコードの文字の連続です:「キャラクタ定数」。
A string constant is an array of characters enclosed in quotes. It is of
the string type. If there is a need to insert a double quote (") into
the string, a reverse slash (\) must be put before it. Any special character constants can be inserted into the string if they have a reverse slash (\) before
them. The length of a string constant lies between 0 and 255 characters.
If the string constant is longer, the superfluous characters on the right
will be rejected, and compiler will alert correspondingly.
文字列定数はクォートに囲われる文字列です。 それは文字型のことです。 もしダブルクォート(")を挿入する必要があるなら、文字列の中で逆スラッシュ(\)をその前につけなくてはなりません。
もしそれらがそれらの前に逆スラッシュ(\)を持つなら、どんな特別な文字定数でも文字列に挿入されることができます。文字列定数の長さは 0 〜 255 文字の間です。 もし文字列定数がより長いなら、右側の余分な文字は排除され、そしてコンパイラによって警告されます。
Examples:
例:
"This is a character string"
"Copyright symbol \t\xA9"
"this line contains a line feed symbol \n"
"C:\\Program Files\\MetaTrader 4"
"A" "1234567890" "0" "$"
Its internal representation is a structure of 8 bytes. The first element
of the structure is a long integer that contains the size of the buffer
distributed for the line. The second element of the structure is 32-order
address of the buffer that contains the line.
これらの内部表現は8バイトの構造体です。 構造体の最初の要素は文字列のために割り当てられたバッファサイズを含んでいる整数です。 構造体の2番目の要素は文字列を含むバッファの32桁のアドレスです。
|