会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Icefield
青山依旧在,
几度夕阳红。
—QQ:2601946620
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2022年3月1日
041 Set
摘要: #include <iostream> #include <string> #include <set> using namespace std; int main() { multiset<int> ss; set<int> his; int cmd ; cin >> cmd; for (int
阅读全文
posted @ 2022-03-01 10:15 icefield817
阅读(44)
评论(0)
推荐(0)
2022年2月28日
040 List
摘要: #include <iostream> #include <string> #include <list> using namespace std; list<int> no; int getIndex(int id) { int res=0; list<int>::iterator ii; for
阅读全文
posted @ 2022-02-28 17:09 icefield817
阅读(48)
评论(0)
推荐(0)
039 我自己的 ostream_iterator
摘要: #include <iostream> #include <list> #include <string> using namespace std; template <class T1, class T2> void Copy(T1 s, T1 e, T2 x) { for (; s != e;
阅读全文
posted @ 2022-02-28 15:52 icefield817
阅读(108)
评论(0)
推荐(0)
038 白给的list排序
摘要: #include <cstdio> #include <iostream> #include <algorithm> #include <list> using namespace std; int main() { double a[] = { 1.2,3.4,9.8,7.3,2.6 }; lis
阅读全文
posted @ 2022-02-28 15:26 icefield817
阅读(84)
评论(0)
推荐(0)
037 函数对象的过滤器
摘要: #include <iostream> #include <vector> using namespace std; struct A { int v; A() { } A(int n) :v(n) { }; bool operator<(const A& a) const { return v <
阅读全文
posted @ 2022-02-28 14:56 icefield817
阅读(52)
评论(0)
推荐(0)
036 很难蒙混过关的CArray3d三维数组模板类
摘要: #include <iostream> #include <iomanip> #include <cstring> using namespace std; template <class T> class CArray3D { // 在此处补充你的代码 public: int x, y, z; T
阅读全文
posted @ 2022-02-28 14:38 icefield817
阅读(260)
评论(0)
推荐(0)
035 按距离排序
摘要: #include <iostream> #include <cmath> #include <algorithm> #include <string> using namespace std; template <class T1, class T2> struct Closer { // 在此处补
阅读全文
posted @ 2022-02-28 10:41 icefield817
阅读(67)
评论(0)
推荐(0)
2022年2月27日
034 goodcopy
摘要: #include <iostream> using namespace std; template <class T> struct GoodCopy { // 在此处补充你的代码 GoodCopy() {} void operator()(T * arr, T * arrEnd, T * brr)
阅读全文
posted @ 2022-02-27 16:22 icefield817
阅读(81)
评论(0)
推荐(0)
2022年2月24日
033 排序,又见排序!
摘要: #include <iostream> using namespace std; bool Greater2(int n1, int n2) { return n1 > n2; } bool Greater1(int n1, int n2) { return n1 < n2; } bool Grea
阅读全文
posted @ 2022-02-24 17:54 icefield817
阅读(115)
评论(0)
推荐(0)
032 这个模板并不难
摘要: #include <iostream> #include <string> #include <cstring> using namespace std; template <class T> class myclass { // 在此处补充你的代码 public: T * p; int size;
阅读全文
posted @ 2022-02-24 13:14 icefield817
阅读(56)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告
目录
留言
QQ
微信