Getting certian place from String

Hello,

Lets say I have a string str1 = "abc";
I want another string that will get the second\third char from str1, "b" or "c".
Is there any function that can do that?

Thanks.
substring()
Yep, substr().
str::string::at() or str::string::operator[].
Topic archived. No new replies allowed.