stl:find _first_of与search用法
来源:互联网 发布:怎么上传图片到淘宝 编辑:程序博客网 时间:2024/06/07 09:01
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string str("i love you"); string str1 = "youf"; string::iterator ix = search(str.begin(), str.end(), str1.begin(), str1.end()); if (ix == str.end()) cout << "connot find it" << endl; else cout << ix-str.begin(); int n=str.find_first_of("sdaadosf"); cout << n << endl; }
阅读全文
0 0
- stl:find _first_of与search用法
- 【STL】find的用法
- C++ STL set::find的用法
- C++ STL set::find的用法
- C++ STL set::find的用法
- C++的STL之search()与find_end()
- yum search与install用法
- STL Queue与Stack用法
- STL find()
- STL--find()
- Linux命令:find与exec的用法
- Linux - find与exec的用法
- find与grep的用法及区别
- Linux命令:find与exec的用法
- jQuery中 filter()与find()的用法
- Windows STL算法学习一 find与find_if
- STL栈与队列的基础用法
- STL通用函数与list用法详解
- c#基础概念
- 《深入了解计算机系统》第一章《计算机系统漫游》知识点
- MySQL数据库-----------基础总结1
- Visual Studio 2010趣味编程完结版
- 刷清橙OJ--A1092.数据加密
- stl:find _first_of与search用法
- MYSQL存储过程
- 2017年Android百大框架排行榜
- Matlab二维图 (二)
- 【LeetCode】13. Roman to Integer
- 使用connect by进行级联查询
- 将avi视频转换为多帧的dicom图
- java设计模式之单例模式
- 了解自定义控件