会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yuanxinglan
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
50
51
52
53
54
55
56
57
58
59
下一页
2023年5月4日
模块与群体数据
摘要: #include<iostream>#include<cassert>using namespace std;template<typename T>class OrderList{ public: typedef struct _NODE{ T value; struct _NODE* next;
阅读全文
posted @ 2023-05-04 20:36 不会JAVA的小袁
阅读(15)
评论(0)
推荐(0)
2023年4月27日
顺序容器4
摘要: #include<stack>#include<iostream>#include<string>using namespace std;int main(){ stack<char>s; string str; cin>>str; for(auto iter=str.begin();iter !=
阅读全文
posted @ 2023-04-27 20:22 不会JAVA的小袁
阅读(18)
评论(0)
推荐(0)
顺序容器3
摘要: #include<list>#include<iterator>#include<string>#include<iostream>using namespace std;int main(){ string names1[]={"Alice","Helen","Lucy","Susan"}; st
阅读全文
posted @ 2023-04-27 20:15 不会JAVA的小袁
阅读(17)
评论(0)
推荐(0)
顺序容器2
摘要: #include<vector>#include<deque>#include<algorithm>#include<iterator>#include<iostream>using namespace std;int main(){ istream_iterator<int>i1(cin),i2;
阅读全文
posted @ 2023-04-27 19:35 不会JAVA的小袁
阅读(18)
评论(0)
推荐(0)
2023年4月26日
顺序容器1
摘要: #include<iostream>#include<list>#include<deque>using namespace std;template<class T>void printContainer(const char* msg,const T& s){ cout<<msg<<":"; c
阅读全文
posted @ 2023-04-26 21:18 不会JAVA的小袁
阅读(14)
评论(0)
推荐(0)
迭代器2
摘要: #include<algorithm>#include<iterator>#include<vector>#include<iostream>using namespace std;template<class T,class InputIt,class OutputIt>void mySort(I
阅读全文
posted @ 2023-04-26 20:51 不会JAVA的小袁
阅读(17)
评论(0)
推荐(0)
2023年4月25日
迭代器1
摘要: #include<iterator>#include<iostream>#include<algorithm>using namespace std;double square(double x){ return x*x;}int main(){ transform(istream_iterator
阅读全文
posted @ 2023-04-25 19:00 不会JAVA的小袁
阅读(10)
评论(0)
推荐(0)
STL简介1
摘要: #include<iostream>#include<vector>#include<iterator>#include<algorithm>#include<functional>using namespace std;int main(){ const int N=5; vector<int>s
阅读全文
posted @ 2023-04-25 18:53 不会JAVA的小袁
阅读(15)
评论(0)
推荐(0)
模板与群体数据2
摘要: #include<iostream>#include<cstdlib>using namespace std;struct Student{ int id; float gpa;};template<class T>class Store{ private: T item; bool haveVal
阅读全文
posted @ 2023-04-25 18:39 不会JAVA的小袁
阅读(18)
评论(0)
推荐(0)
模板与群体数据1
摘要: #include<iostream>using namespace std;template<class T>void outputArray(const T *array,int count){ for(int i=0;i<count;i++) cout<<array[i]<<" "; cout<
阅读全文
posted @ 2023-04-25 18:20 不会JAVA的小袁
阅读(15)
评论(0)
推荐(0)
上一页
1
···
50
51
52
53
54
55
56
57
58
59
下一页
公告