![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
重拾C语言
文章平均质量分 79
Pengp
这个作者很懒,什么都没留下…
展开
-
快速排序、二叉搜索树
快速排序、二叉搜索树生成、二分查找之前一直在搞java,C都生疏了,现在开始把常用的数据结构和算法统统打一遍#include #include typedef struct node { int num; struct node * rchild; struct node * lchild;} Node;typedef struct queuenode{ int num原创 2013-09-01 00:45:52 · 601 阅读 · 0 评论 -
双链表实现
双链表1、头文件#ifndef lcthw_List_h#define lcthw_List_h#include struct ListNode;typedef struct ListNode { struct ListNode *next; struct ListNode *prev; void *value;} ListNode;typedef原创 2013-09-01 00:56:27 · 422 阅读 · 0 评论 -
C树操作,前中后序递归遍历,前中后序非递归遍历,树状显示
一个树操作的例子,同时包含了前中后序递归遍历,前中后序费递归遍历/* * BTress.c * * Created on: 2013-9-3 * Author: youyou */#include#include typedef struct node { int num; int isFirst; struct node *lchild; struct nod原创 2013-09-03 19:34:47 · 387 阅读 · 0 评论