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

顺序队列C实现

于 2022-08-13 发布 文件大小:1.52 kB
0 186
下载积分: 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 个回复

  • 生成信号
    我们有两个相同发电机的声音的振动,可以生成 4 类型的信号 (正弦波,方形,三角形,锯齿) 和改变我们的振动频率。类型的信号,他们的频率可以调整到每个生成器离开对方。例如,第一信号发生器可以生成、 频率为 1000 赫兹和第二个 — — 正弦波、 34 Hz 的频率。如果一个发电机频率 0 Hz 供应,我们只能得到其他发电机的输出信号。然后我们两个的信号到达处理单元和不断变化的信号。这个单元有四种模式-添加信号、 减法、 乘法和除法的信号。因而我们可以我们两个的输入的信号,若要打开另一个,但我们需要的配置。由于模式发电机独立变化和模式信号处理单元也独立地变化,然后我们心中都充满的 68 种不同的模式。给定的设备的 upolyahaye,在非常大的数字 riznomanatnyh 模式下,这种不同于常规发电机产生了 17 倍多模式的值,因此应用领域。到目前为止我们发电机 perevenshuye 其他发电机功能和 lysche 他们比较复杂一点。
    2022-01-24 10:15:25下载
    积分:1
  • 贝叶斯分类算法 matlab
    对于UCI数据集 IRIS 用贝叶斯分类算法分类
    2022-10-30 18:50:03下载
    积分:1
  • ACM稳定婚姻匹配
    输入 (第一行数据表示 Man(Woman)的数目 n;接下来的数据中,第一个 n*n 的数据 块表示 Man 的优先列表;另一个 n*n 的数据块表示 Woman 的优先列表) 5 ---------------------- (Man(Woman)的数目 n) 2 1 4 5 3 -------------- (第一个男人的优先列表) 4 2 1 3 5 2 5 3 4 1 -------------- (第三个男人的优先列表) 1 4 3 2 5 2 4 1 5 3 5 1 2 4 3 -------------- (第一个女人的优先列表) 3 2 4 1 5 2 3 4 5 1 1 5 4 3 2
    2022-04-09 13:25:44下载
    积分:1
  • for the filename specified by the file name to create a model mode FILE structur...
    为filename 所指定的文件名按mode 模式创建一个FILE结构数据区,并将该数据区的首地址赋值给FILE类型的指针变量fp.-for the filename specified by the file name to create a model mode FILE structure data, the data will be the first to address assignment FILE pointer types of variables fp.
    2022-08-23 19:57:32下载
    积分:1
  • oh. Very cattle, most people do not give him
    线形的哦。很牛的,一般人不给他-oh. Very cattle, most people do not give him
    2023-07-24 00:15:02下载
    积分:1
  • k均值代码,我自己做的,保证正确,欢迎下载
    k均值代码,我自己做的,保证正确,欢迎下载-k means the code, I have to do to ensure that the correct, welcome to download
    2023-06-18 23:25:03下载
    积分:1
  • MATLAB functions: LLL.m, Brun.m, Seysen.m. These functions implement different lattice reduction al
    The supplementary material consists of three MATLAB functions: LLL.m Seysen.m Brun.m These functions implement different lattice reduction algorithms in MATLAB.  The functions are well-documented, explaining their functionality as well  as how to run them. The software is provided for free and without warranty.
    2023-07-10 23:10:03下载
    积分:1
  • achieved through hosting the numerical algorithm (linear equations)
    通过托管实现的数值算法(线性方程组)-achieved through hosting the numerical algorithm (linear equations)
    2022-04-25 04:17:27下载
    积分:1
  • 过程不去说
    应用背景脚本对积分ção de不是财政de赛达utilizando tabela intermediaria对位pedidos de文达。积分为tabelas pedido_de_venda,SC5,SC3,SF2,SD2 E航空公司班机检查员关键技术脚本费托EM advpl E Banco de墙裙Oracle。作为一个çõFAZ Integra ES银行Banco河间qualquer aplicaçãO阙,该公司pedidos Na tabela intermediaria对位dentro做Protheus / microsiga
    2023-03-06 05:20:04下载
    积分:1
  • 分治法求众数
    资源描述给定含有n个元素的多重集合S,每个元素在S中出现的次数称为该元素的重数。多重集S中重数最大的元素称为 众数。例如,S={1,2,2,2,3,5}。多重集S的众数是2,其重数为3。 求众数方法很多,现要求你用分治算法来试一试,并分析其效率。 编程任务:对于给定的由n个自然数组成的多重集S,采用分治算法编程计算S的众数及其重数。
    2022-03-26 15:28:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载