programing:cpp_builder:cpp_builder-unicode
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
programing:cpp_builder:cpp_builder-unicode [2020/01/31 21:06] – [添え字番号の開始は1] yoko | programing:cpp_builder:cpp_builder-unicode [2020/01/31 21:08] – [添え字番号の開始は1] yoko | ||
---|---|---|---|
行 56: | 行 56: | ||
### 添え字番号の開始は1 | ### 添え字番号の開始は1 | ||
- | String型の文字列は文字配列のようにアクセスできるが、添え字の開始番号は 0 でなくて 1〜 なので注意。 | + | String型の文字列は文字配列のようにアクセスできるが、添え字の開始番号は 0 でなくて 1〜 なので注意。(0でアクセスすると例外トラップ) |
<code c> | <code c> | ||
- | String text = " | + | String text = L" |
Char c = text[1]; | Char c = text[1]; | ||
</ | </ |
programing/cpp_builder/cpp_builder-unicode.txt · 最終更新: 2020/01/31 21:29 by yoko