Answers for "contain c++"

C++
6

c++ string contains

if (string1.find(string2) != std::string::npos) {
    std::cout << "found!" << 'n';
}
Posted by: Guest on April-02-2020
0

c++ contains

if (s1.find(s2) != std::string::npos) {
    std::cout << "found!" << 'n';
}
Posted by: Guest on July-07-2020

Browse Popular Code Answers by Language