![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
介绍了数据结构和算法的相关内容
Aming Glaxy
这个作者很懒,什么都没留下…
展开
-
二叉树基本操作
摘要:本文主要介绍了二叉树的基本操作的实现并且进行了测试。SqBinaryTree.h 1 #ifndef _BINARYTREE_ 2 #define _BINARYTREE_ 3 #include<iostream> 4 using namespace std; 5 6 //首先定义二叉树结点类模板 7 template<class ElemTy...原创 2019-10-22 09:36:00 · 584 阅读 · 0 评论 -
顺序栈
摘要:本文主要介绍了顺序栈的实现和具体的应用。SqStack.h 1 #pragma once 2 #ifndef _SQSTACK_ 3 #define _SQSTACK_ 4 5 template<class ElemType> 6 class SqStack 7 { 8 protected: 9 int count;10 int...原创 2019-10-19 16:11:00 · 109 阅读 · 0 评论 -
线性表链式存储结构的实现的使用
摘要:本文主要将单链表类进行了实现,并且进行了验证。SimpleLinkList.h 1 #ifndef _SIMPLELINKLIST_ 2 #define _SIMPLELINKLIST_ 3 #include<stddef.h> 4 5 template<class ElemType> 6 struct Node //创建节点结构体 ...原创 2019-10-13 14:58:00 · 157 阅读 · 0 评论 -
线性表顺序存储结构的实现和运用
摘要:本文主要是线性表顺序存储结构的具体实现和运用,具体实现了线性表类,并且做了相应的测试。Sqlist.h 1 #ifndef _SQLIST_ 2 #define _SQLIST_ 3 4 template<class ElemType> 5 class Sqlist { 6 public: 7 Sqlist(int size); //构造...原创 2019-10-10 21:23:00 · 219 阅读 · 0 评论