string的查找 一、find函数 s1.find(s2) 找到返回首字母下标 未找到返回s1.npos 二、strstr函数 strstr(s1,s2) 找到返回首字母指针❗ 未找到返回NULL tips.得到的指针-s1=下标