Why does it keep returning string::npos everytime i use:
like this:Code:size_type find(
const value_type* _Ptr,
size_type _Off = 0,
size_type _Coun
Code:string str;
str = "find this in the string";
size_t pos = str.find("this", 4, 10);
if(pos == string::npos)
return 0;
//pos always == npos?
//Why? Am I doing something wrong?