上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 112 下一页
摘要: #include <iostream> #include <vector> #include <algorithm> #include <functional> using namespace std; class Print { public: void operator()(bool b) { 阅读全文
posted @ 2022-07-31 11:42 thomas_blog 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <algorithm> #include <functional> using namespace std; class Print { public: void operator()(int i) { c 阅读全文
posted @ 2022-07-31 11:03 thomas_blog 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <functional> using namespace std; int main() { plus<int> p; cout << p(10, 20) << endl; return 0; } $ ./a.out 30 阅读全文
posted @ 2022-07-31 10:58 thomas_blog 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <functional> using namespace std; int main() { negate<int> n; cout << n(10) << endl; return 0; } $ ./a.out -10 阅读全文
posted @ 2022-07-31 10:55 thomas_blog 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <algorithm> using namespace std; class Print { public: void operator()(int i) { cout << i << endl; } }; 阅读全文
posted @ 2022-07-31 10:45 thomas_blog 阅读(31) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <algorithm> using namespace std; class Find { public: bool operator()(int i) { return i < 5; } }; int m 阅读全文
posted @ 2022-07-31 10:28 thomas_blog 阅读(27) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <map> using namespace std; int main() { map<int, string> m; m.insert(pair<int, string>(1, "furong")); m.insert(pair<int, 阅读全文
posted @ 2022-07-30 18:04 thomas_blog 阅读(19) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <set> #include <algorithm> using namespace std; class Person { public: Person(string name, int age): name(name), age(age) 阅读全文
posted @ 2022-07-29 00:01 thomas_blog 阅读(89) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <set> #include <algorithm> using namespace std; class Print { public: void operator()(int i) { cout << i << endl; } }; cl 阅读全文
posted @ 2022-07-28 23:39 thomas_blog 阅读(44) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main() { pair<string, int> p1("furong", 10); cout << "姓名 " << p1.first << endl; cout << "年龄 " << p1.secon 阅读全文
posted @ 2022-07-28 23:21 thomas_blog 阅读(19) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 112 下一页