typedef struct BiTNode
{
char data;
struct BiTNode *lchild,*rchild;
}BiTNode,*BiTree;
typedef struct
{
BiTree data[MAXQSIZE];
int front;
int rear;
}SeQueue;
先定义数,再写队列。
因为在写队列的时候需要用BiTree data[MAXQSIZE];
,需要数的构建地址。
typedef struct BiTNode
{
char data;
struct BiTNode *lchild,*rchild;
}BiTNode,*BiTree;
typedef struct
{
BiTree data[MAXQSIZE];
int front;
int rear;
}SeQueue;
先定义数,再写队列。
因为在写队列的时候需要用BiTree data[MAXQSIZE];
,需要数的构建地址。