数据结构(4):树

4、树 1.二叉树的遍历 void PreOrder(BTNode *b){ //前序遍历 if(b!=NULL){ printf("%c",b->data); PreOrder(b->lchild); PreOrder(b->rchild); } } void InOrder(BTNode *b){ //中序遍历 if(b!=NULL){ InOrder(b->lch
相关文章
相关标签/搜索