find_first_of
来源:互联网 发布:查看网络有几个人用 编辑:程序博客网 时间:2024/06/06 10:49
int a[5] = { 1,3,4,6,7};
int b[5] = { 1,3,5,7,8};
list<int> roster1(a,a+5);
list<int> roster2(b,b+5);
int cnt = 0;
list<int>::iterator it = roster1.begin();
while( ( it = find_first_of(it,roster1.end(),
roster2.begin(),roster2.end())) != roster1.end())
{
++cnt;
cout << *it << " " ;
++it;
}
int b[5] = { 1,3,5,7,8};
list<int> roster1(a,a+5);
list<int> roster2(b,b+5);
int cnt = 0;
list<int>::iterator it = roster1.begin();
while( ( it = find_first_of(it,roster1.end(),
roster2.begin(),roster2.end())) != roster1.end())
{
++cnt;
cout << *it << " " ;
++it;
}
cout << endl;
找出两个数组的相同的元素
- find_first_of
- find_first_of
- find_first_of
- find_first_of
- find_first_of
- find_first_of
- find_first_of详解
- find_end,find_first_of
- string find_first_of
- find find_first_of区别
- find_first_of()和 find_last_of()
- find_first_of (STL Sample)
- find_first_of()和 find_last_of()
- find_first_of()和 find_last_of()
- find_first_of()与 find_first_not_of()
- C++ string::find_first_of
- STL(5)find_first_of函数
- find_first_of()和 find_last_of()
- uva_712_S-Trees
- * java程序性能优化 Posted on 2010-07-28 16:04 chinaifne 阅读(2246) 评论(0) 编辑 收藏 一、避免在循环条件中使用复杂表达式
- C#连接Oracle数据库的字符串
- undefined reference to `ceil' (or pow or floor or ...) in ubuntu 11.10
- magento获取所有缺货产品
- find_first_of
- Java中三种注释及其实际应用的意义
- 如何设计一个LRU Cache?
- 开发者对HTML5“黄金时代”或加速到来表示乐观
- 网络管理维护技巧:五招提速杀毒软件效率
- 深入理解const char*p,char const*p,char *const p,const char **p,char const**p,char *const*p,char**const p
- Servlet开发基础_常瑞鹏的个人总结(第三次课)
- Linux下Python基础调试
- 什么是事务?事务的特性有哪些?