diff --git a/æ ‘.cpp b/æ ‘.cpp index 49d2548..8d94cc7 100644 --- a/æ ‘.cpp +++ b/æ ‘.cpp @@ -1,4 +1,3 @@ - #include #include #include @@ -61,8 +60,8 @@ void Findmaxpath(BTNode* bt, vector apath, int asum) { if (bt == NULL) //¿ÕÊ÷Ö±½Ó·µ»Ø return; - apath.push_back(bt->data); asum += bt->data; //bt½áµã¼ÓÈëapath - asum += bt->data; //ÀÛ¼Æa·¾¶ºÍ¡£ + apath.push_back(bt->data); + asum += bt->data; //bt½áµã¼ÓÈëapath if (bt->lchild == NULL && bt->rchild == NULL) //bt½áµãΪҶ½áµã { if (asum - maxsum) @@ -96,4 +95,4 @@ int main() printf("\n"); printf("Ïú»ÙÊ÷bt\n"); DestroyBTree(bt); -} \ No newline at end of file +}