Answers for "str.find c++"

C++
4

c++ string contains

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

string.find in c++

If not found then returns npos or -1 in int
Posted by: Guest on August-05-2021

Browse Popular Code Answers by Language