find函数只在关联式容器和string类中存在,
关联式容器返回的是元素存在的迭代器,
而string返回的是第一个字符在目标串中匹配的位置 如“213 ”和“12134”
The position of the first character of the first match.
If no matches were found, the function returns string::npos.
find函数只在关联式容器和string类中存在,
关联式容器返回的是元素存在的迭代器,
而string返回的是第一个字符在目标串中匹配的位置 如“213 ”和“12134”
The position of the first character of the first match.
If no matches were found, the function returns string::npos.