First page Back Continue Last page Graphics
STRING CONSTRUCTORS
(cont.)
string s(cstr); creates a string s that is initialized by the C-string cstr.
string s(chars, chars_len); creates a string s that is initialized by chars_len characters of the character array chars.
string s(num c); creates a string that has num occurrences of character c.
string s(beg,end); creates a string that is initialized by all characters of the range [beg,end].