/*
*Copyright (c) 2016, 烟台大学计算机学院
*All rights reserved.
*文件名称:main.cpp
*作者:张旺华
*完成日期: 2016 年 7 月 1 日
*版本号:v1.0
*问题描述:/*
*Copyright (c) 2016, 烟台大学计算机学院
*All rights reserved.
*文件名称:main.cpp
*作者:张旺华
*完成日期: 2016 年 7 月 1 日
*版本号:v1.0
*问题描述:编写一个一个程序实现顺序环形队列各项基本运算(假设队列基本元素类型为Char)
*
*/
#include <iostream>
#include <stdio.h>
#include <malloc.h>
#define Maxsize 5
typedef char Elemtype;
using namespace std;
typedef struct
{
Elemtype elem[Maxsize];
int front,rear;
}SqQueue;
void InitQueue(SqQueue *&q) //初始化队列
{
q=(SqQueue *)malloc(sizeof(SqQueue));
&n
编写一个一个程序实现顺序环形队列各项基本运算(假设队列基本元素类型为Char)
最新推荐文章于 2023-02-10 22:22:33 发布
