From 81e283e11cf4365bae78d4f03ceb1347001870e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=9D=82=E6=98=B4?= Date: Fri, 22 Nov 2024 01:10:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E7=A0=81=E6=94=B9=E5=9B=9Eutf-8?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homework4/test1.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homework4/test1.cpp b/homework4/test1.cpp index ac5a0c0..2e81d16 100644 --- a/homework4/test1.cpp +++ b/homework4/test1.cpp @@ -1,5 +1,5 @@ /* - * 二叉树采用二叉链存储结构存放,结点值为int 类型,设计一个递归算法求二叉树 bt 中所有叶子结点值之和 + * 浜屽弶鏍戦噰鐢ㄤ簩鍙夐摼瀛樺偍缁撴瀯瀛樻斁锛岀粨鐐瑰间负int 绫诲瀷锛岃璁′竴涓掑綊绠楁硶姹備簩鍙夋爲 bt 涓墍鏈夊彾瀛愮粨鐐瑰间箣鍜 */ #include #include"BiTree.h" @@ -23,7 +23,7 @@ int main() BiTree* root = createTreeFromArray(testValues, size); - cout << "树结构为" << endl << root->toString() << endl; - cout << "叶子节点数据总和: " << BiTree::sum_leaf(root) << endl; + cout << "鏍戠粨鏋勪负" << endl << root->toString() << endl; + cout << "鍙跺瓙鑺傜偣鏁版嵁鎬诲拰: " << BiTree::sum_leaf(root) << endl; return 0; }