The
find
Function
•
Example Usage
string str1, str2;
str1.find(“the”)
str1.find(str2)
str1.find(str2 + “abc”)
•
If the string is not found, a special
value
(
string::npos
)
is returned. The
return value type is
string::size_type
.