I know that I can return the index of a particular character of a string with the indexof() function, but how can I return the character at a particular index?<
indexof()
string s = "hello"; char c = s[1]; // now c == 'e'
See also Substring, to return more than one character.
Substring