EricYang

Tech Spot of Eric

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年8月13日

摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 const int TREELEN=6; 6 7 typedef struct NODE 8 { 9 char chVal;10 struct NODE* pLeft;11 struct NODE* pRight;12 }NODE;13 14 void rebuild(char *pPreOrder, char *pInOrder, int treeLen, NODE **pRoot)15 {16 //前序中序序列为空,返回NULL,失败17 i... 阅读全文
posted @ 2012-08-13 22:59 Eric-Yang 阅读(173) 评论(0) 推荐(0) 编辑