摘要:
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... 阅读全文