摘要: // 完成了单链表的所有操作: 增,删,前插,后插,回调遍历,复制,销毁,反转,排序// 对于队列和栈就简单了,稍稍修改即可#include <stdio.h>#include <stdlib.h>#include <assert.h>#define list_create(A) list_init(A)typedef struct node{ struct node *next; void *data;}node;typedef struct { node *head;}list_t; // 单链表typedef struct { node *head; 阅读全文
posted @ 2012-10-11 00:02 庄庄庄 阅读(208) 评论(0) 推荐(0) 编辑