从上到下打印二叉树

来源:互联网 发布:js 判断对象类型 兼容 编辑:程序博客网 时间:2024/06/05 00:23

//从上到下打印二叉树
void PrintRromTopToBottom(BtNode* ptr)
{
if(!ptr)
return ;
deque