利用了树的中序遍历,不过是从右边到左边的中序遍历。 #include <iostream.h>#include "tree.h"template<class NODETYPE>void outputTree(TreeNode<NODETYPE> *ptr,int totalSpaces)} 运行结果: 99 97 92 83 72 71 6949 44 40 32 28 19 18 11 相关文章: 2021-11-24 2021-11-28 2021-12-30 2021-10-18 2021-12-24 2022-12-23