代码搜索结果
找到约 10,000 项符合
5 的代码
bo5-5.cpp
// bo5-5.cpp 广义表的头尾链表存储(存储结构由c5-5.h定义)的基本操作(11个)
Status InitGList(GList &L)
{ // 创建空的广义表L
L=NULL;
return OK;
}
void DestroyGList(GList &L) // 广义表的头尾链表存储的销毁操作
{ // 销毁广义表L
GList
c5-5.h
// c5-5.h 广义表的头尾链表存储表示
enum ElemTag{ATOM,LIST}; // ATOM==0:原子,LIST==1:子表
typedef struct GLNode
{
ElemTag tag; // 公共部分,用于区分原子结点和表结点
union // 原子结点和表结点的联合部分
{
AtomType atom; // a
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 /* 原子结点和表结点的联合部分 */
{
c5-5.cpp
#include
using namespace std;
int main()
{ int i,j,row=0,colum=0,max;
int a[3][4]={{5,12,23,56},{19,28,37,46},{-12,-34,6,8}};
max=a[0][0];
for (i=0;i
xt5-5.cpp
#include
using namespace std;
int main()
{ const int n=5;
int a[n],i,temp;
cout
u5_5.dfm
object F5_5: TF5_5
Left = 215
Top = 192
BorderStyle = bsDialog
Caption = #25968#25454#22791#20221
ClientHeight = 236
ClientWidth = 401
Color = clBtnFace
Font.Charset = GB2312_C
u5_5.pas
unit U5_5;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, StdCtrls, Mask, ExtCtrls;
type
TF5_5 = class(TForm)
Panel1