层次遍历


入队(根)


while(队列不空)

 出队(指针p)

 输出p

 入队(左孩子)

 入队(右孩子)

猜你喜欢

转载自blog.csdn.net/a133900029/article/details/80602237