CString _mystring("MohanBabu");
CSting::Find
if (_mystrings.Find("Babu") >= 0) { //found } else { //not found }
int Find( TCHAR ch ) const; int Find( LPCTSTR lpszSub ) const; int Find( TCHAR ch, int nStart ) const; int Find( LPCTSTR pstr, int nStart ) const;
CString str("abcdef"); if ( str.Find("def") != -1) { printf("found"); } else { printf("not found"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)