1234567891011121314
for( vector<string>::const_iterator it403 = vect00403.begin(); it403 != vect00403.end(); ++it403 ) // contains substrings { for( vector<string>::const_iterator itr = read_413_line.begin(); itr != read_413_line.end(); ++itr ) // contains lines read from file { substr = *itr; if( substr.find(*it403) != string::npos ) { common.push_back(*itr); break; } } }