自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 C++ STL plus,minus,multiplies,divides,negate用法

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />#include <functional><br />#include <numeric><br />using namesp

2011-05-04 01:27:00 4655

转载 STL算法学习小结(转)

<br />(转载)STL算法学习,小结如下:<br />前提:<br />下载stl源码:  http://www.sgi.com/tech/stl/download.html<br />打开网页:     http://www.sgi.com/tech/stl/stl_index.html<br />一   函数对象: 因为很多的算法中多使用了函数对象<br /><br />二元函数对象,V1和V2为输入,V3为结果<br />plus<T>:<br />  transform(V1.begin(),

2011-05-04 01:26:00 462

转载 STL算法学习小结

<br />(转载)STL算法学习,小结如下:<br />前提:<br />下载stl源码:  http://www.sgi.com/tech/stl/download.html<br />打开网页:     http://www.sgi.com/tech/stl/stl_index.html<br />一   函数对象: 因为很多的算法中多使用了函数对象<br /><br />二元函数对象,V1和V2为输入,V3为结果<br />plus<T>:<br />  transform(V1.begin(),

2011-05-04 01:06:00 360

原创 C++ STL 堆的相关操作

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />#include <functional><br />#include <numeric><br />using namesp

2011-05-02 22:04:00 667

原创 C++ STL 排序 查找 集合操作

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />#include <functional><br />#include <numeric><br />using namesp

2011-05-02 21:04:00 1078

原创 C++ STL 分割算法

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />#include <functional><br />using namespace std;<br />template<t

2011-05-02 16:13:00 558

原创 C++ STL 排列算法

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />#include <functional><br />using namespace std;<br />template<t

2011-05-02 15:43:00 312

原创 C++ STL填充算法

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />#include <functional><br />using namespace std;<br />template<t

2011-05-02 12:49:00 508

原创 C++ STL交换替换

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />#include <functional><br />using namespace std;<br />struct str

2011-05-02 10:47:00 339

原创 C++ STL 计算问题

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />using namespace std;<br />inline bool eq_nocase(char c1,char c2

2011-05-02 00:23:00 377

原创 C++ STL子序列匹配

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />using namespace std;<br /><br />template <class Integer><br />s

2011-05-01 11:19:00 591

原创 C++ STL线性查找

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />#include <cstdlib><br />using namespace std;<br />bool mod_greater ( int elem1, int ele

2011-05-01 01:37:00 495

原创 C++ STL(三)

<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <iterator><br />#include <algorithm><br />#include <list><br />#include <set><br />using namespace std;<br />int main()<br />{<br /> vector<int> vec;<br /> for (int i=0;i

2011-04-30 21:52:00 286

转载 c++ STL迭代器(二)

<br />这是本小人书。原名是《using stl》,不知道是谁写的。不过我倒觉得很有趣,所以化了两个晚上把它翻译出来。我没有对翻译出来的内容校验过。如果你没法在三十分钟内觉得有所收获,那么赶紧扔了它。文中我省略了很多东西。心疼那,浪费我两个晚上。<br />译者:kary<br />STL概述 (转)<br />STL的一个重要特点是数据结构和算法的分离。尽管这是个简单的概念,但这种分离确实使得STL变得非常通用。例如,由于STL的sort()函数是完全通用的,你可以用它来操作几乎任何数据集合,包括链表

2011-04-29 22:19:00 747

原创 C++ STL容器

<br />#include <iostream><br />#include <algorithm><br />#include <vector><br />#include <deque><br />#include <list><br />#include <string><br /> <br />using namespace std;<br />int main()<br />{<br /> vector<int> vec;<br /> for(int i=0;i<=6;i++)<br /> {<

2011-04-29 21:39:00 360

原创 C++ STL 前向迭代器和反向迭代器

<br />#include <iostream><br />#include <list><br />using namespace std;<br />int main()<br />{<br />     int Test[] = { 1,2,3,4,5,6,7,8,9 };<br />     list<int> lis(Test,Test+9);<br />     list<int>::iterator it = lis.begin();<br />     int iTemp = 0;<br

2011-04-29 21:38:00 1225

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除