1. 首页
  2. 数据库
  3. 其它
  4. C++STL中algorithm里find()函数

C++STL中algorithm里find()函数

上传者: 2021-01-10 11:10:45上传 PDF文件 31.72KB 热度 14次
C++STL中algorithm里find()函数 1.string中的运用 1.1函数原型及描述 函数1 size_type find(const string & str, size_type pos = 0) const 形参列表str:要查找的子字符串string变量,pos :要查找的起始位位置 返回为参数size_type :该子字符串首次出现时其首字符的索引;否则,返回-1 应用 string subString = Let; string mainString = Let life be beautiful like summer flowers,death lik
下载地址
用户评论