Quote:
Im gonna put it like this : i wanna find in a phrase two characters consecutive
( one beside the other , one right after the other , like for example i wanna find "ra":
you find "ra" in the word "phrase" and uppercase the letter right after "ra" which gives you :
phraSe. ) Do you get it now?
Ah. In this case, the find() member function of std::string is what you need. You have to learn how to handle the lack of the search string, but as mentioned you just compare the return value of find() with std::string::npos.