in the string.find() func it teturns garbage value if the text is not found..
is this possible that it returns 1 if the text found and 0 if it fails
like in this example
Code:#include <iostream> #include <string> using namespace std; int main () { string a="saqib.txt"; cout << a.find("xts"); return 0; }