输出二叉树的所有路径
摘要:
#include <stdio.h>#include <stdlib.h>typedef struct node{ char data; node *lchild; node *rchild;}TreeNode;void CreateTree(TreeNode *&Node, char *pstr){ int top = -1; TreeNode *Stack[100]; char ch = *pstr; int j = 0; int t; TreeNode *p = NULL; while(ch != '\0') { switch(ch) { 阅读全文
posted @ 2013-04-09 21:57 lzm风雨无阻 阅读(1517) 评论(0) 推荐(0) 编辑