我知道我可以使用以下命令返回字符串的特定字符的索引indexof()函数,但如何返回特定索引处的字符?
indexof()
string s = "hello"; char c = s[1]; // now c == 'e'
也可以看看Substring,返回多个字符。
Substring