Description: 基本数据结构类的定义和实现: MyStack ,MyPoint,MyArc,Graph,MyQueuesMyStack为构造的一个通用的C++模版堆栈类 MyPoint为一个坐标结构MyArc为带权的边类Graph为临街矩阵表示的图MyQueues为按权值顺序存储的边的队列-basic data structure class definition and realization : MyStack, MyPoint, MyArc, Graph, MyQueuesMyStack for a generic structure of the C category MyPoint stack template for a structure MyArc to coordinate with the right side of the street like Graph Matrix plans MyQueues value of the order by the right side of the storage Queue Platform: |
Size: 2165 |
Author:wang |
Hits:
Description: 基本数据结构类的定义和实现: MyStack ,MyPoint,MyArc,Graph,MyQueuesMyStack为构造的一个通用的C++模版堆栈类 MyPoint为一个坐标结构MyArc为带权的边类Graph为临街矩阵表示的图MyQueues为按权值顺序存储的边的队列-basic data structure class definition and realization : MyStack, MyPoint, MyArc, Graph, MyQueuesMyStack for a generic structure of the C category MyPoint stack template for a structure MyArc to coordinate with the right side of the street like Graph Matrix plans MyQueues value of the order by the right side of the storage Queue Platform: |
Size: 2048 |
Author:wang |
Hits:
Description: C++ Interface Class
This C++ code is intended to be a tutorial. It is an extension of the idea presented in Item 42 of Scott Meyer s "Effective C++", 2nd Edition. In his discussion he creates a generic stack class to contain pointers-to-objects. His class is written with a void* based implementation, and a template-based interface. The chief aim of restricting templates to interface classes is to reduce "code bloat", which is the replication of template code for each instantiated type. Bloat increases the overall size of the object code.
In my demo, I extend the interface-class idea to create a generic stack class to contain objects (ie, not just pointers to objects). This demo also provides a nice example of using "placement new" and explicit destruction. Platform: |
Size: 3072 |
Author:邹娟 |
Hits:
Description: C++ 标准模板库(STL)
C++ STL (Standard Template Library标准模板库) 是通用类模板和算法的集合,它提供给程序员一些标准的数据结构的实现如 queues(队列), lists(链表), 和 stacks(栈)等.-C++ Standard Template Library (STL) C++ STL (Standard Template Library Standard Template Library) is a generic collection of class templates and algorithms it provides to the programmer a number of standard implementation of data structures, such as queues (queues), lists (list), and stacks (stack), etc.. Platform: |
Size: 118784 |
Author:梅有 |
Hits:
Description: C++ STL (Standard Template Library标准模板库) 是通用类模板和算法的集合,它提供给程序员一些标准的数据结构的实现如 queues(队列), lists(链表), 和 stacks(栈)等.-C++ STL (Standard Template Library Standard Template Library) is a generic collection class templates and algorithms, it is available to the programmer some standard data structure implementation, such as queues (queue), lists (list), and stacks (stack) and so on. Platform: |
Size: 368640 |
Author:shidewen |
Hits:
Description: 应用泛型编程实现的Stack类,实现了栈的各项功能和特性-Using Generic Programming to implement the Stack class, implement the stack of functions and features Platform: |
Size: 2279424 |
Author:李春放 |
Hits: