find first occurrence of character of its index in string using find stl code example Example: find in string c++ size_t find (const string& str, size_t pos = 0) const;