摘要: 带头结点的单链表实现LinkList.h 1 /********************************************************************* 2 *: 3 *: Author: dspeeding 4 *: Copyright (c) 2013, dspeeding 5 *: 6 *: Created at: 2013.08.06 7 *: Last modified: 2013.08.06 8 *: 9 *: Introduct... 阅读全文
posted @ 2013-08-06 15:10 dspeeding 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 本程序在linux下编译通过SqList.h 1 #include 2 #include 3 #include 4 5 //定义数据类型为int型 6 typedef int ElemType; 7 8 //定义数据类型的打印函数 9 typedef void (*Visit)(ElemType*); 10 11 //定义数据类型的比较函数 12 typedef int (*Compare)(ElemType*, ElemType*); 13 14 typedef struct List{ 15 ElemType *list; //存储空间... 阅读全文
posted @ 2013-08-06 15:08 dspeeding 阅读(872) 评论(0) 推荐(0) 编辑