代码搜索结果
找到约 10,000 项符合
5 的代码
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 /* 原子结点和表结点的联合部分 */
{
vtb5_5.m
function vtb5_5(ma,m,ca,ka,k,rfin)
%VTB5_5 Normalized amplitude of the primary mass for a
% damped vibration absorber design.
% VTB5_5(ma,m,ca,ka,k,rfin) plots the normalized amplitude
% for a system
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
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
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
listing 5-5.java
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class OnlineHelp extends MIDlet implements CommandListener
{
private Display display;
private Command back;
pr
xt5-5.cpp
class A //A为基类
{public:
void f1( );
int i;
protected:
void f2();
int j;
private:
int k;
};
class B: public A //B为A的公用派生类
{public:
void f3( );