#include <iostream>
#include <stdio.h>
#include <malloc.h>
using namespace std;
//链式队列结点
typedef struct Node{
int data;
struct Node *next;
}Node;
//队列
typedef struct {
Node *front,*rear;
}LinkQueue;
//初始化
void init(LinkQueue *q){
q->front=(Node*)malloc(sizeof(Node));
if(q->front!=NULL){
q->rear=q
队列操作的实现-链式存储
最新推荐文章于 2023-01-27 20:06:51 发布