string find_last_of 用法

  int find_first_of(char c, int start = 0):
              查找字符串中第1个出现的c,由位置start开始。
              如果有匹配,则返回匹配位置;否则,返回-1.默认情况下,start为0,函数搜索
              整个字符串。
              
  int find_last_of(char c):
              查找字符串中最后一个出现的c。有匹配,则返回匹配位置;否则返回-1.
              该搜索在字符末尾查找匹配,所以没有提供起始位置。
   

参考网站:http://blog.csdn.net/wanglei5695312/article/details/4998062

原文地址:https://www.cnblogs.com/lhwblog/p/6511363.html