Top
▶
プログラミングサンプル
▶ 文字列の長さを取得
文字列の長さを取得するサンプルです。
C#
string
str =
"あいうえおあいうえお"
;
int
i1 = str.Length;
// i1 : 10