C++字符串find操做

string的find:ios auto index=s.find("x",n)    返回s中从n位置开始第一次出现x的位置坐标,找不到则返回npos,程序中要写为:string::nposspa rfind表示最后一次出现的位置nposcode find_first_of表示x中任何一个字符首次出现的位置blog find_last-of   最后一次出现的位置string find_firs
相关文章
相关标签/搜索