Skip to content

Commit

Permalink
a little revise
Browse files Browse the repository at this point in the history
  • Loading branch information
soulmachine committed Jan 7, 2014
1 parent 7b149da commit 9f20c61
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions C++/chapTree.tex
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,11 @@ \subsection{C语言实现}
* @return 无
*/
void post_order_morris(bt_node_t *root, int (*visit)(bt_node_t*)) {
bt_node_t dump = { 0, NULL, NULL };
bt_node_t dummy = { 0, NULL, NULL };
bt_node_t *cur, *prev = NULL;

dump.left = root;
cur = &dump;
dummy.left = root;
cur = &dummy;
while (cur != NULL ) {
if (cur->left == NULL ) {
prev = cur; /* 必须要有 */
Expand Down
Binary file modified C++/手写代码必备手册(C++版).pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions C/chapTree.tex
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,11 @@ \subsection{C语言实现}
* @return 无
*/
void post_order_morris(bt_node_t *root, int (*visit)(bt_node_t*)) {
bt_node_t dump = { 0, NULL, NULL };
bt_node_t dummy = { 0, NULL, NULL };
bt_node_t *cur, *prev = NULL;

dump.left = root;
cur = &dump;
dummy.left = root;
cur = &dummy;
while (cur != NULL ) {
if (cur->left == NULL ) {
prev = cur; /* 必须要有 */
Expand Down
Binary file modified C/手写代码必备手册(C版).pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ Java 文件夹下是Java版,内容一摸一样,代码是用Java写的
本书模板已经写好了,基本上不需要很多LaTeX知识就可以动手了。

欢迎给本书添加内容或纠正错误,在自己本地编译成PDF,预览没问题后,就可以发pull request过来了。

##北美求职微博群
我和我的小伙伴们在这里:<http://q.weibo.com/1312378>

0 comments on commit 9f20c61

Please sign in to comment.