上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 94 下一页
摘要: #include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ 阅读全文
posted @ 2019-06-12 21:15 西北逍遥 阅读(201) 评论(0) 推荐(0) 编辑
摘要: vector<int>::iterator iter1 = partial_sort_copy(deq1.begin(), deq1.end(), vec1.begin(), vec1.end()); 阅读全文
posted @ 2019-06-12 21:13 西北逍遥 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <deque>#include <algorithm>#include <vector>#include <functional> using namespace std; int main(){ deque<int> deq1; deque< 阅读全文
posted @ 2019-06-12 21:10 西北逍遥 阅读(204) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <deque>#include <algorithm>#include <vector> using namespace std; int main(){ deque<int> deq1; deque<int>::iterator deq_it 阅读全文
posted @ 2019-06-12 21:08 西北逍遥 阅读(302) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <deque>#include <algorithm>#include <vector> using namespace std; int main(){ deque<int> deq1; deque<int>::iterator deq_it 阅读全文
posted @ 2019-06-12 21:02 西北逍遥 阅读(622) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <deque>#include <algorithm>#include <functional> using namespace std; int main(){ deque<int> deque1; for (int k=0;k<15;k++ 阅读全文
posted @ 2019-06-12 20:44 西北逍遥 阅读(245) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <vector> using namespace std; int main(){ vector<int> vec1; for (int k=0;k<5;k++) { vec1.push_back(ran 阅读全文
posted @ 2019-06-12 20:03 西北逍遥 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <vector>#include <iterator> using namespace std; int main(){ vector<int> vec1; for (int k=0;k<10;k++) 阅读全文
posted @ 2019-06-12 19:37 西北逍遥 阅读(405) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <list>#include <iterator>#include <functional> using namespace std; int main(){ int source[] = { 1,2,3 阅读全文
posted @ 2019-06-12 19:18 西北逍遥 阅读(366) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <list>#include <vector>#include <functional> using namespace std; int main(){ list<int> list1; for (in 阅读全文
posted @ 2019-06-12 17:14 西北逍遥 阅读(364) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <list>#include <algorithm>#include <iterator>#include <functional> using namespace std; int main(){ list<int> list1; list< 阅读全文
posted @ 2019-06-12 16:37 西北逍遥 阅读(339) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <vector>#include <list>#include <string>#include <functional>#include<iterator> using namespace std; i 阅读全文
posted @ 2019-06-12 16:08 西北逍遥 阅读(202) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <vector>#include <deque>#include <algorithm> using namespace std; int main(){ vector<int> vec1; deque<int> deq1; for (int 阅读全文
posted @ 2019-06-12 12:44 西北逍遥 阅读(330) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<vector>#include <list>#include <algorithm>#include <functional> using namespace std; //不需拷贝,速度快void square(int &elementPara 阅读全文
posted @ 2019-06-12 10:44 西北逍遥 阅读(295) 评论(0) 推荐(0) 编辑
摘要: list<char>::iterator pos; 一般使用前置式递增(preincrement),因为它比后置式递增(postincrement)效率高,因为后置式递增内部需要一个临时对象,因为它必须存放迭代器原来的位置并返回之。 阅读全文
posted @ 2019-06-12 10:22 西北逍遥 阅读(715) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<vector>#include <list>#include <algorithm>#include <functional> using namespace std; int main(){ vector<int> vec1; list<int 阅读全文
posted @ 2019-06-12 09:52 西北逍遥 阅读(430) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <vector>#include <functional>#include <list> using namespace std; int main(){ list<int> list1; for (in 阅读全文
posted @ 2019-06-12 08:24 西北逍遥 阅读(355) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <list>#include <functional>#include <vector> using namespace std; //已序区间查找int main(){ list<int> list1; 阅读全文
posted @ 2019-06-11 19:08 西北逍遥 阅读(745) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <deque>#include <list>#include <vector>#include <functional> using namespace std; //二元谓词bool isEven(in 阅读全文
posted @ 2019-06-11 16:33 西北逍遥 阅读(653) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <list>#include <algorithm> using namespace std; int main(){ list<int> list1; for (int k=0;k<10;k++) { list1.push_back(k); 阅读全文
posted @ 2019-06-11 15:13 西北逍遥 阅读(7748) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <deque> using namespace std; //二元谓词//比较两个数的大小bool absLess(int elementParam1,int elementParam2){ return 阅读全文
posted @ 2019-06-10 20:45 西北逍遥 阅读(3294) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <vector>#include <functional>#include<set> using namespace std; //一元谓词bool isEven(int elementParam){ i 阅读全文
posted @ 2019-06-10 20:25 西北逍遥 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <set> using namespace std; template<typename Container>void PrintContents(const Container& con); template<typename Contain 阅读全文
posted @ 2019-06-10 15:00 西北逍遥 阅读(162) 评论(0) 推荐(0) 编辑
摘要: template<typename Container>void PrintContents(const Container& con) { Container::const_iterator iter = con.begin(); while (iter != con.end()) { cout 阅读全文
posted @ 2019-06-10 14:40 西北逍遥 阅读(345) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <map>#include <string> using namespace std; int main(){ map<int, string> map1; multimap<int, string> multimap1; map1.inser 阅读全文
posted @ 2019-06-10 10:15 西北逍遥 阅读(1618) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string> using namespace std; int main(){ string str1("hello"); string str2("hello"); string str3("world"); if (str1 != st 阅读全文
posted @ 2019-06-10 09:20 西北逍遥 阅读(2749) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string> using namespace std; int main(){ string str1("hello"); string str2(" study c++"); string::iterator str_iter = str 阅读全文
posted @ 2019-06-09 20:08 西北逍遥 阅读(873) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string> using namespace std; int main(){ string a1; cout << a1<< endl; string s2(5,'a'); cout << s2 << endl; string s3(s2 阅读全文
posted @ 2019-06-09 19:42 西北逍遥 阅读(1616) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <vector> using namespace std; int main(){ vector<int> vec1; for (int k=0;k<20;k++) { vec1.push_back(k); cout << "size:"<<v 阅读全文
posted @ 2019-06-09 17:14 西北逍遥 阅读(380) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <vector>#include <list>#include <deque> using namespace std; int main(){ vector<int> a; vector<int> b; a.push_back(10); a. 阅读全文
posted @ 2019-06-09 16:14 西北逍遥 阅读(754) 评论(0) 推荐(0) 编辑
上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 94 下一页