2015年8月5日
摘要:
//_DataStructure_C_Impl:顺序循环队列#include#include#define QueueSize 10 //定义顺序循环队列的最大容量typedef char DataType;typedef struct Squeue{ //顺序循环队列的类型定义 DataT...
阅读全文
posted @ 2015-08-05 02:52
_noname
阅读(104)
推荐(0)
摘要:
//_DataStructure_C_Impl:顺序队列#include#include#define QueueSize 50typedef char DataType;typedef struct Squeue{ //顺序队列类型定义 DataType queue[QueueSize]; i...
阅读全文
posted @ 2015-08-05 02:51
_noname
阅读(102)
推荐(0)
摘要:
//_DataStructure_C_Impl:#include#include#define StackSize 100typedef char DataType;typedef struct{ DataType stack[StackSize]; int top;}SeqStack;//将栈...
阅读全文
posted @ 2015-08-05 02:49
_noname
阅读(113)
推荐(0)
2015年8月3日
摘要:
//_DataStructure_C_Impl:链栈#include#includetypedef char DataType;typedef struct node{ DataType data; struct node *next;}LStackNode,*LinkStack;//将链栈初始...
阅读全文
posted @ 2015-08-03 23:47
_noname
阅读(123)
推荐(0)
摘要:
// _DataStructure_C_Impl:共享栈#include#include#define StackSize 100typedef char DataType;//两个共享栈的数据结构类型定义typedef struct { DataType stack[StackSize]; ...
阅读全文
posted @ 2015-08-03 23:46
_noname
阅读(101)
推荐(0)
摘要:
// _DataStructure_C_Impl:顺序栈#include#include#define StackSize 100typedef char DataType;typedef struct{ DataType stack[StackSize]; int top;}SeqStack;...
阅读全文
posted @ 2015-08-03 23:45
_noname
阅读(114)
推荐(0)
2015年8月2日
摘要:
//一元多项式#include#includetypedef struct ployn{ float coef; //存放一元多项式的系数 int expn; //存放一元多项式的指数 struct ployn *next;}PolyNode,*PolyNomial;//创建一元多项式PolyN...
阅读全文
posted @ 2015-08-02 22:57
_noname
阅读(126)
推荐(0)
摘要:
//双向链表#include#includetypedef char DataType;typedef struct Node{ DataType data; struct Node *prior; struct Node *next;}DListNode,*DLinkList;//初始化双向循...
阅读全文
posted @ 2015-08-02 22:55
_noname
阅读(101)
推荐(0)
摘要:
//静态链表#include#include#define ListSize 10typedef char DataType;//静态链表结点类型定义typedef struct{ DataType data;//数据域 int cur;// 游标,类似指针域}SListNode;//静态链表类...
阅读全文
posted @ 2015-08-02 22:55
_noname
阅读(78)
推荐(0)
2015年7月31日
摘要:
//CycList:循环单链表#include#includetypedef int DataType;typedef struct Node{ DataType data; struct Node *next;}ListNode,*LinkList;//创建一个不带头结点的循环单链表LinkL...
阅读全文
posted @ 2015-07-31 23:47
_noname
阅读(101)
推荐(0)