2019年5月15日
摘要: /* 1.初始化 2.进队列 3.出队列 4.读取队列 5.判断队列是否为空 6.判断队列是否已满 7.求队列长度 */ #include #define maxsize 5 typedef struct { int data[maxsize]; int front,rear; }CircQueue; //循环队列的初始化,令对头队尾指针归零 void Ini... 阅读全文
posted @ 2019-05-15 19:44 卢思林 阅读(208) 评论(1) 推荐(0) 编辑
摘要: #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]; ... 阅读全文
posted @ 2019-05-15 16:57 卢思林 阅读(126) 评论(0) 推荐(0) 编辑