string find question

can someone explain to me how theString.assign(str, n); works?
There's an example here if this is what you are looking for.
http://www.cplusplus.com/reference/string/string/assign/

The first n characters of str are copied.
Topic archived. No new replies allowed.