#include <stdio.h>#include <malloc.h>#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define OVERFLOW -2typedef int Status;typedef int QElemType;#define MAXQSIZE 6typedef struct{ QElemType *base; int front; int rear;}SqQueue;
Status InitQueue(SqQueue &Q){ Q.base=(QElemType*)malloc(MA...
//006.h
#include <stdio.h>#include <stdlib.h>typedef int Status;typedef int SElemType;
#define ERROR 0#define OK 1#define OVERFLOW -2#define STACK_INIT_SIZE 10#define STACKINCREMENT 2typedef struct { SElemType *base; SElemType *top; int stacksize;}SqStack;
Status InitStack(SqStack &S){ if(...
//007.h
#include <stdio.h>#include <stdlib.h>#include <malloc.h>
int over_flag=0;
typedef int ElemType;typedef struct LNode{ ElemType data; struct LNode *next;}LNode,*LinkList;
void Traverse(LinkList L);void CreateList(LinkList &L);void exchange(LinkList &L);void delete_even(LinkList ...
# include <stdio.h> # include <stdlib.h># include <conio.h># include <string.h># define MAX_LENGTH 100typedef char **HuffmanCode;//**********数据结构*************typedef struct { int weight; //权值 int parent,lchild,rchild; //双亲,左右孩子}HTNode,*HuffmanTree; //结点和指针//**********select函数*******...