随笔分类 -  数据结构

摘要:#include<iostream>#include<cstdlib>#include<ctime>using namespace std ;#define MAXSIZE 100 #define OK true #define ERROR false #define LEN 5 #define OVERFLOW 0typedef bool Status ;typedef int QElemType ;typedef struct QNode{ QElemType data ; QNode * next ;}QNode,*pQNode;typedef str 阅读全文
posted @ 2013-05-29 16:28 dot dot 小点点丶 阅读(132) 评论(0) 推荐(0)
摘要:#include<iostream>#include<cstdlib>#include<ctime>using namespace std ;#define MAXSIZE 100#define OK true#define ERROR false#define LEN 5typedef bool Status ;typedef int QElemType ;typedef struct{QElemType data[MAXSIZE];int front ;int rear ;}SqQueue;Status initQueue(SqQueue * Q){Q- 阅读全文
posted @ 2013-05-29 15:19 dot dot 小点点丶 阅读(130) 评论(0) 推荐(0)
摘要:#include <iostream>using namespace std ;#define MAXSIZE 1000#define OK true #define ERROR false typedef int ElemType ;typedef bool Status ;typedef struct {ElemType data ;int cur ;}Component,StaticLinkList[MAXSIZE];Status InitStaticLinkList(StaticLinkList space){for(int i = 0 ; i < MAXSIZE-1 阅读全文
posted @ 2013-05-28 10:09 dot dot 小点点丶 阅读(129) 评论(0) 推荐(0)