实验5队列读的实现.docVIP

  • 0
  • 0
  • 约1.39千字
  • 约 5页
  • 2016-12-28 发布于湖南
  • 举报
实验5 队列基本操作的实现 【实验目的】 1、? 2、? C语言实现方法; 3、? 4、? 【实验内容】 1、? 26个英文字母的顺序队和链队存储; 2、? A~Z”26个英文字母入队,然后让所有字母出队; 3、? init( )函数实现队列的初始化,用EnQueue( )函数实现入队,用OutQueue( )函数实现出队,build( )函数建立队列,display( )函数显示队列。 【C源程序】 /* 顺序队的操作: 26个英文字母入队,出队。*/ #include stdio.h #include stdlib.h typedef struct sqqueue { char *base; int front,rear?; int maxsize; }SqQueue; int n; SqQueue myQueue; int init(SqQueue *q) { 请自己填写 } int EnQueue(char x) { 请自己填写 } char OutQueue( ) { 请自己填写 } int build( ) { 请自己填写 } void display( ) { 请自己填写 } void main() { n=26; if(init(myQueue)==0) { pri

文档评论(0)

1亿VIP精品文档

相关文档