parts of string.

Hello :)
I have the string string str="thisisjustanexample";.
How can i use parts of the string str,for example string dev=beginning from str[3] and ending at str[8],that means here "sisjus".
Could you help me ?
Last edited on
string dev = str.substr(3, 6);
Thank you for the fast answer,it works.
Topic archived. No new replies allowed.