#define MAX #define MAX 30
#define NULL 0
#define OK 1
#define ERROR -1
#include <stdio.h>
#include <malloc.h>
typedef struct btnode
{
char data;
struct btnode *lchild,*rchild;
}bttree;
typedef struct QNode
{
bttree *data;
struct QNode *next;
}QNode,*QueuePtr;
typedef struct
{
QueuePtr front;
QueuePtr rear;
}LinkQueue;
bttree* creat(bttree *t)
{ //以先序的顺序建立二叉链表的存储结构
char ch;
scanf("%c",&ch);
if (ch=='#')
t = NULL;
else
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余4页未读,立即下载