void PreorderPrintLeaves( BinTree BT )
{
if(BT!=NULL)
{
if(BT->Left==NULL&&BT->Right==NULL)
printf("data");
else
{
PreorderPrintLeaves( BinTree BT->Left );
PreorderPrintLeaves( BinTree BT->Right );
}
}
}
先序输出叶子节点
最新推荐文章于 2023-10-19 09:03:25 发布