摘要: 使用递归实现,每次打印子节点前,都要把前面的“|”和空格打印出来,代码如下: 方法一: #include "stdlib.h" #include "stdio.h" #include "string.h" typedef struct Node { char *name; int num; // 子 阅读全文
posted @ 2022-05-28 15:10 jason_t 阅读(113) 评论(0) 推荐(0) 编辑