Mid-Beginner C++ problem

In Python, I can use "in" to state that this is inside that.
For example: if "this" in stringX; print ("yadadada")
else print ("Sally mcSalad")

How can I use this function in C++?

Thanks! =)
Do you mean something like find() or one of its related functions.
See reference (and example code)
http://www.cplusplus.com/reference/string/string/find/
You've done a pretty bad job of explaining what the function you're describing does. I'd guess you're asking about the existence of a standard C++ function to check if a given string is a substring of another string. Is that what you're asking?
+Moschops Yes, that's exactly what I meant.
+Chervil Thanks, that's it!
Topic archived. No new replies allowed.