String类的( )方法返回查找到的字符串在主串的位置。
find(const char *str,size_type index); 返回str在字符串中第一次出现的位置(从index开始査找),如果没找到则返回-1。