String class use templates <string>
string copy
while (*a++ = *b++) {}
but bad style
string s3 = "Hello Mom!"
Note c-string "Hello Mom!" automatically converted to string type
Member functions
.length()
.at(i)
while (*a++ = *b++) {}
string s3 = "Hello Mom!"
.length()
.at(i)