2014年8月6日

【STL】- vector的用法

摘要: 初始化:1. 默认构造:vector vint;2. 用包含10个元素的数组初始化:vector vint(ia, ia+10);算法:1. vint.push_back(i);2. vint.size();3. vint[i];4. vint.erase(pos1, pos2);代码: 1 #in... 阅读全文

posted @ 2014-08-06 17:26 醉清风JM 阅读(267) 评论(0) 推荐(0)

数据结构-各种排序算法

摘要: 实现: 1 #ifndef SORT_H 2 #define SORT_H 3 4 /** 5 * Several sorting routines. 6 * Arrays are rearranged with smallest item first. 7 */ 8 9... 阅读全文

posted @ 2014-08-06 08:22 醉清风JM 阅读(289) 评论(0) 推荐(0)

导航