Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

locate specific string letters c++

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

if (str.find(str2) != string::npos) {
//.. found.
} 
 
PREVIOUS NEXT
Tagged: #locate #specific #string #letters
ADD COMMENT
Topic
Name
5+5 =