摘要:
/* 1.初始化 2.进队列 3.出队列 4.读取队列 5.判断队列是否为空 6.判断队列是否已满 7.求队列长度 */ #include #define maxsize 5 typedef struct { int data[maxsize]; int front,rear; }CircQueue; //循环队列的初始化,令对头队尾指针归零 void Ini... 阅读全文
摘要:
#include #define maxsize 100 typedef struct{ char ch[maxsize]; int n; }SeqString; void Assign(SeqString &L,char ch1[]){ int i=0; while(ch1[i]!='\0'){ L.ch[i]=ch1[i]; ... 阅读全文