![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树
小小小菜鸟丶
废话不说,上代码!
展开
-
C语言树的编程程序
main主函数: #include #include "tree.h" int main() { Tree *tree = Tree_Create(); if (tree == NULL) return -1; Tree_Insert(tree, 'A', -1); Tree_Insert(tree, 'B', 0); Tree_Insert(tree, 'C', 0);原创 2017-07-30 22:37:02 · 1828 阅读 · 0 评论 -
C语言二叉树程序
main.c文件 #include "BTree.h" #include #include "LinkQueue.h" #include "LinkStack.h" void printData(BTreeNode* node) { printf ("%c\n", node->data); } void pre_order(BTreeNode *root) { if (root ==原创 2017-07-30 22:50:15 · 1173 阅读 · 0 评论