Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ string contains

if (string1.find(string2) != std::string::npos) {
    std::cout << "found!" << '
';
}
 
PREVIOUS NEXT
Tagged: #string
ADD COMMENT
Topic
Name
8+6 =