摘要: 双链表 结构描述: #include <iostream> #include <cstdlib> using namespace std; typedef int DataType; //链表节点 typedef struct Node { DataType A; struct Node * Pre 阅读全文
posted @ 2024-07-18 20:48 codels 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 栈:数组实现 结构描述: #define MAX 100 typedef int DataType; class SeqStack { public: DataType * A; int Top; void Init(); void Push(DataType X); void Pop(); Dat 阅读全文
posted @ 2024-07-18 14:43 codels 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 栈:链表实现 结构描述 #include <iostream> #include <cstdlib> typedef int DataType; using namespace std; typedef struct Node { DataType A; struct Node * Next; }N 阅读全文
posted @ 2024-07-18 14:42 codels 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 双栈:数组实现 结构描述: #include <iostream> #include <cstdlib> #define MAX 100 using namespace std; typedef int DataType; class DoubleStack { public: DataType * 阅读全文
posted @ 2024-07-18 14:42 codels 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 单链表 结构描述 #include <iostream> #include <cstdlib> using namespace std; typedef int DataType; //链表节点 typedef struct Node { DataType A; struct Node * Next 阅读全文
posted @ 2024-07-18 14:41 codels 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 顺序表 结构描述 #include <iostream> #include <cstdlib> #define MAX 100 using namespace std; typedef int DataType; class SeqList { private: DataType * A; int 阅读全文
posted @ 2024-07-18 14:41 codels 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 循环队列:链表实现 结构描述 typedef int DataType; typedef struct QueueNode { DataType A; struct QueueNode * Next; }Node; class QueueCycLinked { public: //队头、队尾指针 N 阅读全文
posted @ 2024-07-18 14:38 codels 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 队列:链表实现 结构描述: typedef int DataType; typedef struct QueueNode { DataType A; struct QueueNode * Next; }Node; class QueueLinked { public: //队头、队尾指针 Node 阅读全文
posted @ 2024-07-18 14:35 codels 阅读(46) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示