This is not homework, I need this for my program 🙂
I ask this question, because I searched for this in Google about 1 hour, and I don’t find anything ready to run. I know that is trivial question, but if you will help me, you will make my day 🙂
Question:
How to copy text in string (from for
example 8 letter to 12 letter) and
send to other string?
I have string:
string s = "RunnersAreTheBestLovers";
and I want text from 8 letter to 17 letter in next string
Alice90
I assume you’re trying to get the 8th – 17th characters in a another string. If so you should use the substring method
string::substr