C语音 typedef的用法:
链表存储:
typedef struct TreeNode *BinTree
typedef BinTree Psition;
struct TreeNode{
ElementType Data;
BinTree Left;
BinTree Right;
}
遍历实现的程序
void PostorderTraversal(BinTree BT)
{
if(BT){
PostOrderTraversal(BT->left);
PostOrderTraversal(BT->Right);
printf("%d",BT->Data);
}
}