Can you please tell me the how to use “find” function of STL on string??
Regarding find function in STL
Function Template :
iterator find (iterator first, iterator last, const T& val)
first,last :
iterator to the initial and final positions in a sequence. The range
searched is [first,last), which contains all the elements between first and
last, including the element pointed by first but not the element pointed by last.
val :
Value to be search in the range
Return Value :
An iterator to the first element in the range that compares equal to val.
If no elements match, the function returns last.
code: