随笔分类 - 数据结构
摘要:#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
阅读全文
摘要:#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-
阅读全文
摘要:#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
阅读全文

浙公网安备 33010602011771号