摘要:
利用了树的中序遍历,不过是从右边到左边的中序遍历。 #include #include "tree.h"templatevoid outputTree(TreeNode *ptr,int totalSpaces){ if(ptr!=0) { outputTree(ptr->rightPtr,totalSpaces+5); for(int i=0;ige... 阅读全文
posted @ 2005-07-14 17:44 风歌 阅读(970) 评论(3) 推荐(0) 编辑