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

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

上传者: 2021-01-14 13:20:47上传 PDF文件 22.2KB 热度 12次
C++中algorithm里count()函数 函数原型及描述 count(),存在于vector和string中,分别对单个数字和单个字符计数 用法 string mainString = Let life be beautiful like summer flowers,death like autumn leaves; int total = count(mainString.begin(), mainString.end(), 'u'); cout << this char total is << total << endl; 输出:thi
下载地址
用户评论