bool strcutcmp(BiTNode *pRoot1,BiTNode *pRoot2) { if (pRoot1 == NULL && pRoot2 == NULL) { return true; } if (pRoot1 == NULL || pRoot2 ==NULL) { return false; } bool left = strcutcmp(pRoot1->lchild,pRoot2->lchild); bool right = strcutcmp(pRoot1->rchild,pRoot2->rchild); return left && right; }