代码搜索结果
找到约 10,000 项符合
3 的代码
main3_3a.cpp
// Section 7.3.3
// $ CC putval1.cpp main3_3a.cpp
/*
( 1 )< 23 >
( 2 )< 15, 5 >
*/
// defined in putval1.cpp
void putValues( int[], int size );
int main() {
int i = 23, j[ 2 ] = {
main3_3.cpp
// Section 8.3.3
// $ CC tracegcd.C main3_3.C
/*
depth #1
depth #2
depth #3
depth #4
gcd of (15,123): 3
*/
#include
using std::cout;
using std::endl;
// defined
c3-3.h
/* c3-3.h 队列的顺序存储结构(可用于循环队列和非循环队列) */
#define MAXQSIZE 5 /* 最大队列长度(对于循环队列,最大队列长度要减1) */
typedef struct
{
QElemType *base; /* 初始化的动态分配存储空间 */
int front; /* 头指针,若队列不空,指向队列头元素 */
int r
main3-3.c
/* main3-3.c 循环队列 检验bo3-3.c的主程序 */
#include"c1.h"
typedef int QElemType;
#include"c3-3.h"
#include"bo3-3.c"
void visit(QElemType i)
{
printf("%d ",i);
}
void main()
{
St
bo3-3.c
/* bo3-3.c 循环队列(存储结构由c3-3.h定义)的基本操作(9个) */
Status InitQueue(SqQueue *Q)
{ /* 构造一个空队列Q */
(*Q).base=(QElemType *)malloc(MAXQSIZE*sizeof(QElemType));
if(!(*Q).base) /* 存储分配失败 */
exit(
algo3-3.c
/* algo3-3.c 括号匹配的检验,(限于()、[]) */
typedef char SElemType;
#include"c1.h"
#include"c3-1.h"
#include"bo3-1.c"
void check()
{ /* 对于输入的任意一个字符串,检验括号是否配对 */
SqStack s;
SElemType ch[80
graf3_3.m
x=-7.5:0.5:7.5;
y=x;
[X,Y]=meshgrid(x,y);
r=sqrt(X.^2+Y.^2)+eps;
Z=sin(r)./r;
surf(X,Y,Z)
title('阔边帽网线图')