搜索资源列表
sample_iter
- 迭代器算法,对于列表数据访问,以及代码以后的维护非常有效,供大家参考-iterative algorithm for data access list, and after the code is very effective safeguard for reference
hash
- 采用迭代器模式实现hash算法,并自带CPPUNIT测试功能。
vectoralist
- 练习vector和list的使用 定义一个空的vector,元素类型int,生成10个随机数插入到vector中,用迭代器遍历vector并输出其中的元素值。在vector头部插入一个随机数,用迭代器遍历vector并输出其中的元素值。用泛型算法find查找某个随机数,如果找到便输出,否则将此数插入vector尾部。用泛型算法sort将vector排序,用迭代器遍历vector并输出其中的元素值。将vector清空。 定义一个list,并重复上述实验,并注意观察结果。 -Exerc
tree
- c++下一个简单的多叉树实现: 利用迭代器方便地构建树, 可以递归输出,前序,后序。 利用栈实现输出。 销毁树只能后序遍历-c++ under a simple multi-tree implementation: the use of easy to build a tree iterator can be recursive output, pre-order after order. Use the stack to achieve the output. Only aft
poly_multi
- 用单链表实现多项式乘法。创建一个PolyNode类,用来保存单项式的内容。单链表用来储存多项式,为方便以见,储存时以降幂排列,这样有利于操作。在程序中操作单链表都是用迭代器来实现的。 在输入单链表时也要以降幂排列输入,相乘过程中每两个单项式相乘,然后将相乘得到的单项式结果插入到乘积多项式的正确位置。-Single linked list to achieve polynomial multiplication. Create a PolyNode class to store the con
stl-code
- stl标准库是C++ 的一个类库,包括容器,算法,迭代器。提供许多基本的算法和数据结构-The Standard Template Library, or STL, is a C++ library of container classes, algorithms, and iterators it provides many of the basic algorithms and data structures of computer science.
Generic-function
- 泛型函数: 总结:使用标准模板库 (STL) C++标准库提供了更为安全,更为灵活的数据集处理方式。 STL的最主要的两个特点:数据结构和算法的分离,非面向对象本质。 访问对象是通过象指针一样的迭代器实现的;容器是象链表,矢量之类的数据结构,并按模板方式提供; 算法是函数模板,用于操作容器中的数据。由于STL以模板为基础,所以能用于任何数据类型和结构。-Generic function: Summary: Using the Standard Template Library
dictlist
- 索引链表实现细节,既有list的特点,又有map的特点。内部有两种迭代器实现。 list迭代iterator map迭代器kiterator 两种迭代器*,->操作都指向list节点。-Dictionary list(dictlist) realize detail, two kinds of iterator inside. one for list,the other for map. Both iterator point to the list node.
CPP-binary-tree
- C++泛型编程编写的二叉查找树结构,支持插入,删除,迭代器遍历等-failed to translate
BinaryTree
- 二叉树操作的一些算法函数,遍历方法,迭代器,线索树,内附文档-Algorithmic functions of the binary tree operations, traversal methods, iterators, clues tree, enclosing document
code
- 用C语言实现,基于迭代器的一元多项式计算,使得算法与具体的容器无关-Using the C language, regardless of the algorithm with specific container iterator-based polynomial, so
10.22
- C++实现链式数据结构,动态数组 栈 队列,用的迭代器,模版-C++ implementation of linked data structures, dynamic array stack queue, use iterators, template
PreOrderTree
- 数据结构树的初步实现 写了迭代器 还有树的先序遍历 但是iterator 的operator 没有实现-Preliminary data tree also wrote a tree traversal iterator iterator s operations but did not realize operator