![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
likanghua666
这个作者很懒,什么都没留下…
展开
-
循环队列(简化版)
#include "windows.h"//Windows环境下Sleep()函数需要此头文件 #include "iostream" #include <stdlib.h> #define MAXQSIZE 10 #define OK 1 #define ERROR 0 typedef int Status; typedef int QElemType; using namespace std; //定义结构体 typedef struct SqQueue{ QElemType原创 2020-12-09 09:37:16 · 152 阅读 · 0 评论 -
链栈进制转换
/***链栈的实现***/ #include<iostream> using namespace std; #define OK 1 #define ERROR 0 typedef int Status; typedef int SElemType; typedef struct StackNode { SElemType data; struct StackNode *next; } StackNode, *LinkStack; //算法3.5 链栈的初始化 Status InitSt原创 2020-11-10 23:28:55 · 568 阅读 · 0 评论 -
链栈
/***链栈的实现***/ #include<iostream> using namespace std; #define OK 1 #define ERROR 0 typedef int Status; typedef char SElemType; typedef struct StackNode { SElemType data; struct StackNode *next; } StackNode, *LinkStack; //算法3.5 链栈的初始化 Status InitS原创 2020-11-10 23:28:00 · 134 阅读 · 0 评论 -
链表
#include<iostream> using namespace std; typedef int ElemType; typedef int Status; #define OK 1 #define ERROR 0 #define amount 5 typedef struct Node{ ElemType data; struct Node *next; }LNode, *LinkList; Status InitList(LinkList &L){ L = new LN原创 2020-10-28 11:15:38 · 128 阅读 · 0 评论