链表声明:
//基本结构声明 #include<iostream> #include<queue> #include<stack> #include<cstdio> #define NoInfo 0 // 0表示没有结点 using namespace std; typedef int ElementType; typedef struct TNode* Position; typedef Position BinTree; //二叉树链表结构 struct TNode{ ElementType Data; //结点数据 BinTree Left; //左子树 BinTree Right; //右子树 };