登录
首页 » 算法 » 顺序队列C实现

顺序队列C实现

于 2022-08-13 发布 文件大小:1.52 kB
0 153
下载积分: 2 下载次数: 1

代码说明:

#include "stdio.h"    #include "stdlib.h"   #include "io.h"  #include "math.h"  #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 20 /* 存储空间初始分配量 */typedef int Status; typedef int QElemType; /* QElemType类型根据实际情况而定,这里假设为int *//* 循环队列的顺序存储结构 */typedef struct{ QElemType data[MAXSIZE]; int front;     /* 头指针 */ int rear;  /* 尾指针,若队列不空,指向队列尾元素的下一个位置 */}SqQueue;Status visit(QElemType c){ printf("%d ",c); return OK;}/* 初始化一个空队列Q */Status Init

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • A source code for gragh
    A source code for gragh
    2022-01-26 08:02:34下载
    积分:1
  • smpl是一个排队论的仿真软件,用这个软件做排队论模型的仿真有灵活高效的特点,这块软件是最早的一款排队论模型仿真软件...
    smpl是一个排队论的仿真软件,用这个软件做排队论模型的仿真有灵活高效的特点,这块软件是最早的一款排队论模型仿真软件-smpl is a queuing theory, simulation software, using this software to do simulation of queuing theory model of flexible and efficient characteristics, the earliest piece of software is a queuing theory model of simulation software
    2022-03-20 23:23:12下载
    积分:1
  • JPEG2000, C代码
    The OpenJPEG library is an open-source JPEG 2000 library developed in order to promote the use of JPEG 2000. See the source for more information.
    2023-04-20 21:00:04下载
    积分:1
  • 用C++实现的 用链表实现无限大整数的加减运,
    用C++实现的 用链表实现无限大整数的加减运算,-C achieved with Chain achieve infinite integer addition and subtraction operations.
    2023-02-05 01:30:03下载
    积分:1
  • 单词拼写检查
    使用贝叶斯实现的快速的英文拼写检查代码,注释清楚。在实现方面目前实现了小写的检查,还没有实现大写的检查。
    2022-08-13 20:44:47下载
    积分:1
  • 独立的AVL的存储介质是在大量的AVL TRE现在可用…
    独立于AVL库的存储媒体 虽现在有不少可用的AVL树库,但几乎都是工作在RAM中,当数据量小的时候,这种方式可行,但当树结构变大时时,读取和存储的时间就会大大变长,任务效率大大降低。能不能直接用磁盘进行树的操作呢?若可以,就不必进行频繁的磁盘内存交换了,本程序就实现了这个功能。实际上,这个程序无论是磁盘还是内存,都很好用。-independent of the AVL storage media is now available in a number of the AVL tree, But almost all work in the RAM, when a small amount of data, this approach feasible, but big tree structure constant, read and storage time will be much longer and the task efficiency has been greatly reduced. Can directly use the disk tree operation? If so, there is no need for frequent exchange of disk memory, the process to achieve this function. In fact, this procedure is disk or memory, are very handy.
    2022-04-09 22:19:08下载
    积分:1
  • 排序的方
    工作显示的排序方法: 选择排序、 插入排序、 冒泡排序、 Shell 排序、 快速排序和合并排序。 该文件将数据写入到文件中,有文档和 excel 中的一个表。
    2022-02-05 00:07:44下载
    积分:1
  • 四阶龙格-库塔
    一种在工程上应用广泛的高精度单步算法,由于此算法精度高,采取措施对误差进行抑制,所以其实现原理也较复杂。该算法是构建在 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-06-11 19:57:35下载
    积分:1
  • Fortran:四种方求积分
    这个是Fortran求积分的源代码,包括高斯五点法,高斯三点法,抛物线法,梯形法。希望能对大家有帮助。
    2023-05-07 06:10:02下载
    积分:1
  • 编写另一版本结构手册,有待学习并进一步提高
    编写另一版本结构手册,有待学习并进一步提高-Another version of the structure of the preparation of manuals, to be learning and to further improve
    2022-04-13 04:35:21下载
    积分:1
  • 696516资源总数
  • 106627会员总数
  • 16今日下载