I have a variable of type `std::string`. I want to check if it contains a certain `std::string`. How would I do that?
Is there a function that returns true if the string is found, and false if it isn't?
Use the "find" method to perform this function. It returns the position of the string-to-find in the string, and string::npos if it is not found. So the equivalent of "if string found" is "if(myStr.find(searchStr) != string::npos)".