代码搜索结果
找到约 10,000 项符合
5 的代码
ch5_5.txt
void countleaf(JD *bt,int count)
{ if(bt!=NULL)
{ if((bt->lchild==NULL)&&(bt->rchild==NULL))
{ count++;
return;
}
countleaf(bt->lchild,count);
co
ch5_5.c
#include
#include
typedef struct node
{ char data;
struct node *lchild,*rchild;
}JD;
void countleaf(JD *bt,int *count)
{ if(bt!=NULL)
{ if((bt->lchild==NUL
bo5-5.c
/* bo5-5.c 广义表的头尾链表存储(存储结构由c5-5.h定义)的基本操作(11个) */
Status InitGList(GList *L)
{ /* 创建空的广义表L */
*L=NULL;
return OK;
}
void DestroyGList(GList *L) /* 广义表的头尾链表存储的销毁操作 */
{ /* 销毁广义表L *
c5-5.h
/* c5-5.h 广义表的头尾链表存储表示 */
typedef enum{ATOM,LIST}ElemTag; /* ATOM==0:原子,LIST==1:子表 */
typedef struct GLNode
{
ElemTag tag; /* 公共部分,用于区分原子结点和表结点 */
union /* 原子结点和表结点的联合部分 */
{
example5_5.m
function [x,endPop,bPop,traceInfo] = ga(bounds,eevalFN,eevalOps,startPop,opts,...
termFN,termOps,selectFN,selectOps,xOverFNs,xOverOps,mutFNs,mutOps)
n=nargin;
if n
example5_5.m
I = imread('rice.tif');
BW = roicolor(I,150,200);
imshow(I);
figure;
imshow(BW)
ex5_5.m
x=0:pi/100:2*pi;
y1=0.2*exp(-0.5*x).*cos(4*pi*x);
plot(x,y1)
hold on
y2=2*exp(-0.5*x).*cos(pi*x);
plot(x,y2);
hold off
5_9(5).cpp
#include
void main()
{
float a,b,c,min,temp;
printf("Please enter a,b,c:\n");
scanf("%f%f%f",&a,&b,&c);
a=(a