
数据结构算法集 C++语言实现
文章平均质量分 73
oosky2004
这个作者很懒,什么都没留下…
展开
-
排序算法数据结构 Compositor.h
/////////////////////////// // // // 排序算法数据结构 Compositor.h // // // ////////////////////////// #include template class Compositor { public: Compositor():sort(NULL){} void Creat(); //创建排序原创 2004-10-23 21:22:00 · 1254 阅读 · 0 评论 -
二叉树数据结构 BinTree.h
/////////////////////////// // // // 二叉树数据结构 BinTree.h // // // ////////////////////////// #include templateclass BinTree; template class TreeNode { protected: friend class BinTree原创 2004-10-23 21:22:00 · 2202 阅读 · 0 评论 -
图数据结构 graph.h
/////////////////////////// // // // 图数据结构 graph.h // // // ////////////////////////// #include #include"Queue.h" templateclass Graph; template struct Node { friend class Graph; int num;原创 2004-10-23 21:21:00 · 2871 阅读 · 0 评论 -
队列数据结构 Queue.h
/////////////////////////// // // // 队列数据结构 Queue.h // // // ////////////////////////// #include template class Queue; template class QueueNode { friend class Queue; private: Type data;原创 2004-10-23 21:19:00 · 1501 阅读 · 0 评论 -
堆栈数据结构 stack.h
/////////////////////////// // // // 堆栈数据结构 stack.h // // // ////////////////////////// #include templateclass Stack; template class StackNode { friend class Stack; private: Type dat原创 2004-10-23 21:16:00 · 1920 阅读 · 0 评论 -
二叉树功能函数 BinTree.cpp
/////////////////////////// // // // 主函数 index.cpp 用户菜单 // // // ////////////////////////// #include #include"BaseFun.h" void main() { //功能菜单 do { cout coutint kind; cin>>kind; switch(kind)原创 2004-10-23 21:26:00 · 1511 阅读 · 0 评论 -
链表 List.h
/////////////////////////// // // // 链表 List.h // // // ////////////////////////// #include"list.h" #include #include template void initlist(type &tmp) { list List; int n;原创 2004-10-23 21:24:00 · 1844 阅读 · 0 评论 -
链表数据结构 list.h
/////////////////////////// // // // 链表数据结构 list.h // // // ////////////////////////// #include template class list; template class listnode { public: friend class list; private: type data; l原创 2004-10-23 21:20:00 · 1593 阅读 · 1 评论 -
排序算法功能函数 Compositor.cpp
/////////////////////////// // // // 排序算法功能函数 Compositor.cpp // // // ////////////////////////// #include"Compositor.h" const int INT =13; const double FLOAT= 13.33; const char CHAR =a; te原创 2004-10-23 21:25:00 · 1161 阅读 · 0 评论 -
基本功能函数 BaseFun.h
/////////////////////////// // // // 基本功能函数 BaseFun.h // // // ////////////////////////// void GRAPH(); void LIST(); void STACK(); void QUEUE(); void COMPOSITOR(); void BINTREE(); ///////////原创 2004-10-23 21:23:00 · 1286 阅读 · 0 评论 -
图功能函数 Graph.h
/////////////////////////// // // // 图功能函数 Graph.h // // // ////////////////////////// #include"Graph.h" template void Graph_Creat(Graph &GraphOPP) { GraphOPP.Creat(); } template void Grap原创 2004-10-23 21:24:00 · 2829 阅读 · 0 评论