VECTOR FIND()
2015-04-16 15:13
423 查看
vector::iterators=find(array.begin(),array.end(),50);第一个参数是array的起始地址,第二个参数是array的结束地址,第三个参数是需要查找的值
if(s !=array.end())//找到
cout<<*s<<endl;
elsecout<<"not find!"<<endl;
if(s !=array.end())//找到
cout<<*s<<endl;
elsecout<<"not find!"<<endl;
相关文章推荐
- poj 1426 Find The Multiple(Spec…
- POJ 1703 Find them, Catch them
- C++中的vector&find_if
- 向量空间模型(VSM:Vector&nbsp;Space&nbsp;M…
- STL&nbsp;型式(STL&nbsp;idiom)&nbsp;vector
- find&nbsp;:在指定的路径下查找指定文件…
- C++ vector
- /usr/bin/ld:&nbsp;cannot&nbsp;find&nbsp;-lxxx&nbsp;…
- 陣列型式(Array&nbsp;idiom)&nbsp;vector
- Draw&nbsp;vector&nbsp;picture&nbsp;using&nbsp;Javasc…
- 说出ArrayList,Vector, Linke…
- find 查找文件内容
- ubuntu&nbsp;搜索文件方法(find命令)
- Vector Markup Language (VML)
- STL vector的之erase应用iterator
- poj&nbsp;1426&nbsp;Find&nbsp;The&nbsp;Multiple
- find your present (2)
- HDOJ&nbsp;&nbsp;1597&nbsp;&nbsp;&nbsp;&nbsp;find&nbsp;the&nbsp;nth&nbsp;digit
- Java中Could not find&n…
- 实战c++中的vector系列--对vector<自定义类>使用std::find 和 std::find_if 算法