代码搜索结果
找到约 10,000 项符合
3 的代码
main3-3.cpp
// main3-3.cpp 循环队列 检验bo3-3.cpp的主程序
#include"c1.h"
typedef int QElemType;
#include"c3-3.h"
#include"bo3-3.cpp"
void print(QElemType i)
{
printf("%d ",i);
}
void main()
{
algo3-3.cpp
// algo3-3.cpp 括号(()、[]和{})匹配的检验
typedef char SElemType;
#include"c1.h"
#include"c3-1.h"
#include"bo3-1.cpp"
void check()
{ // 对于输入的任意一个字符串,检验括号是否配对
SqStack s;
SElemType ch[80],
c3-3.h
// c3-3.h 队列的顺序存储结构(循环队列)
#define MAX_QSIZE 5 // 最大队列长度+1
struct SqQueue
{
QElemType *base; // 初始化的动态分配存储空间
int front; // 头指针,若队列不空,指向队列头元素
int rear; // 尾指针,若队列不空,指向队列尾元素的下一个位置
};
func3-3.cpp
// func3-3.cpp algo3-12.cpp和algo3-13.cpp用到的函数及变量等
#include"c1.h"
typedef struct // 定义ElemType为结构体类型
{
int OccurTime; // 事件发生时刻
int NType; // 事件类型,Qu表示到达事件,0至Qu-1表示Qu个窗口的离开事件
}Event,El
bo3-3.cpp
// bo3-3.cpp 循环队列(存储结构由c3-3.h定义)的基本操作(9个)
void InitQueue(SqQueue &Q)
{ // 构造一个空队列Q
Q.base=(QElemType *)malloc(MAX_QSIZE*sizeof(QElemType));
if(!Q.base) // 存储分配失败
exit(OVERFLOW);
f3_3.m
%线性调频信号
sig=fmlin(256);
%频率
f=0:0.05:0.5;
%时间
t=3:256;
%瞬时频率估计
ifr=instfreq(sig);
%群延迟估计
gd=sgrpdlay(sig,f);
%显示结果
plot(t,ifr','LineWidth',2);
hold on
plot(gd,f,'o--','LineWidth',2);
leg