队列的链式存储结构 链队列(Linked Queue) C++

LinkedQueue.h#ifndef __LINKEDQUEUE_H__ #define __LINKEDQUEUE_H__ template <class T> class Node { public: T data; Node * next; }; template <cl...

队列的顺序存储结构 循环队列(Circle Queue) C++

CirQueue.h#ifndef __CIRQUEUE_H__ #define __CIRQUEUE_H__ const int queueSize = 100; template <class T> class CirQueue { public: CirQueue(); ~CirQ...

C++ 入门教程开发文档

42 课时 |
17490 人已学 |
免费
开发者课程背景图

栈的链式存储结构 链栈(Linked Stack) C++

StackNode.h#ifndef __STACKNODE_H__ #define __STACKNODE_H__ template <class T> class StackNode { public: T data; StackNode<T>* nextNode; };...

栈的顺序存储结构 顺序栈(Sequential Stack) C++

seqStack.h#ifndef __SEQSTACK_H__ #define __SEQSTACK_H__ const int size = 10; template <class T> class seqStack { public: seqStack(void); virtual...

线性表的链式存储结构 单链表(Singly Linked List) C++

Node.h#ifndef __NODE_H__ #define __NODE_H__ template <class T> struct Node { T data; Node<T> * next; }; #endifLinkedList.h#ifndef __LINKED...

线性表的顺序存储结构 顺序表(sequential list) C++

SeqList.h#ifndef __SEQLIST_H__ #define __SEQLIST_H__ template<class T> class SeqList { public: SeqList(); SeqList(T *_data, int _length); virtua...

图的存储结构的实现(C/C++实现)

存档: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define maxv 10 4 #define max 10 5 typedef char elem; 6 typedef int elemtype; 7 #include ...

树和二叉树的存储结构的实现(C/C++实现)

存档: 1 #include &lt;iostream.h&gt; 2 #include &lt;stdio.h&gt; 3 #include &lt;stdlib.h&gt; 4 #define max 20 5 typedef char elemtype; 6 #include "tree.h"...

队列的存储结构的实现(C/C++实现)

存档 1 #include "iostream.h" 2 #include "stdlib.h" 3 #define max 20 4 typedef char elemtype; 5 #include "queue.h" 6 void main() 7 { 8 elemtype e; 9 queu...

栈的存储结构的实现(C/C++实现)

存档 1 #include "iostream.h" 2 #include &lt;stdlib.h&gt; 3 #define max 20 4 typedef char elemtype; 5 #include "stack.h" 6 void main() 7 { 8 stack s; 9 c...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

社区圈子

开发与运维
开发与运维
集结各类场景实战经验,助你开发运维畅行无忧
6411+人已加入
加入
相关电子书
更多
继承与功能组合
对象的生命期管理
移动与复制
立即下载 立即下载 立即下载