" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
string::size_type loc = str1.find( "df", 0 );
if( loc != string::npos ) {
cout << "jest" << loc << endl;
} else {
cout << "nie ma" << endl;
}