Skip to content

Commit c82e5ee

Browse files
authored
Update Tree.cpp
1 parent 2d6eb6d commit c82e5ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Utilities/Tree.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Distributed under the BSD license.
88
*******************************************************************/
99

1010
//==================================================================
11-
// 《剑指Offer——名企面试官精讲典型编程题》代码
12-
// 作者:何海涛
11+
// 《剑指Offer——名企面试官精讲典型编程题》代码
12+
// 作者:何海涛
1313
//==================================================================
1414

1515
#include "Tree.h"
@@ -42,6 +42,7 @@ void PrintTreeNode(const TreeNode* pNode)
4242
{
4343
if(*i != nullptr)
4444
printf("%d\t", (*i)->m_nValue);
45+
++i;
4546
}
4647

4748
printf("\n");

0 commit comments

Comments
 (0)