Answers for "locate specific string letters c++"

C++
1

locate specific string letters c++

string str ("There are two needles in this haystack.");
string str2 ("needle");

if (str.find(str2) != string::npos) {
//.. found.
}
Posted by: Guest on January-09-2022

Code answers related to "locate specific string letters c++"

Browse Popular Code Answers by Language