随笔分类 -  数据结构

摘要:这个实现可能有许多的错误, 还有最后最数据结构最后的测试上, 费了不少力, 请大家看完后不吝赐教!!!贴代码啦LinkList.h#ifndef _SINGLELINKLIST_H#define _SINGLELINKLIST_H/*这是一种简单的链表的实现方式*///typedef int Elemtype;struct node;/*刚开始这个地方写成了typedef struct *PtrToNode;最后导致无法编译*/typedef struct node *PtrToNode;/*在结构体后面没有定义指针,而是使用了如下的定义 ,在编译时出现left of 'next 阅读全文
posted @ 2013-10-16 00:13 CJin 阅读(704) 评论(0) 推荐(0)
摘要:Sqlist.h#ifndef _SQLIST_H_#define _SQLIST_H_#define LIST_INIT_SIZE 1#define LISTINCREAMENT 1//#define ElemType inttypedef struct{ char name[20]; int age;}ElemType;/************************************************************************/ /* 存储结构的定义 ... 阅读全文
posted @ 2013-09-24 12:40 CJin 阅读(447) 评论(0) 推荐(0)