循环队列的链式实现(C语言)
任务要求:
1.创建循环队列
2.链式实现
3.设置一个标志域tag,用它来判断front和rear相等时的队列情况。默认tag=0表示队列“空”
3.写出队列初始化,入队,出队函数
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
typedef int ElemType;
typedef struct LinkNode {
ElemType data
原创
2021-07-15 10:56:09 ·
444 阅读 ·
0 评论