编码改回utf-8了
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* 二叉树采用二叉链存储结构存放,结点值为int 类型,设计一个递归算法求二叉树 bt 中所有叶子结点值之和
|
* 二叉树采用二叉链存储结构存放,结点值为int 类型,设计一个递归算法求二叉树 bt 中所有叶子结点值之和
|
||||||
*/
|
*/
|
||||||
#include<iostream>
|
#include<iostream>
|
||||||
#include"BiTree.h"
|
#include"BiTree.h"
|
||||||
@@ -23,7 +23,7 @@ int main()
|
|||||||
|
|
||||||
BiTree* root = createTreeFromArray(testValues, size);
|
BiTree* root = createTreeFromArray(testValues, size);
|
||||||
|
|
||||||
cout << "树结构为" << endl << root->toString() << endl;
|
cout << "树结构为" << endl << root->toString() << endl;
|
||||||
cout << "叶子节点数据总和: " << BiTree::sum_leaf(root) << endl;
|
cout << "叶子节点数据总和: " << BiTree::sum_leaf(root) << endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user