代码搜索结果
找到约 10,000 项符合
6 的代码
c6-6.h
/* c6-6.h 二叉树的三叉链表存储表示 */
typedef struct BiTPNode
{
TElemType data;
struct BiTPNode *parent,*lchild,*rchild; /* 双亲、左右孩子指针 */
}BiTPNode,*BiPTree;
main6-6.c
/* main6-6.c 检验bo6-6.c的主程序 */
#define CHAR /* 字符型 */
/*#define INT /* 整型(二者选一) */
#include"c1.h"
#ifdef CHAR
typedef char TElemType;
TElemType Nil=' '; /* 字符型以空格符为空 */
#endif
#ifd
bo6-6.c
/* bo6-6.c 二叉树的三叉链表存储(存储结构由c6-7.h定义)的基本操作(21个) */
Status InitBiTree(BiPTree *T)
{ /* 操作结果: 构造空二叉树T */
*T=NULL;
return OK;
}
void DestroyBiTree(BiPTree *T)
{ /* 初始条件: 二叉树T存在。操作结果:
c6-6.h
/* c6-6.h 二叉树的三叉链表存储表示 */
typedef struct BiTPNode
{
TElemType data;
struct BiTPNode *parent,*lchild,*rchild; /* 双亲、左右孩子指针 */
}BiTPNode,*BiPTree;
main6-6.c
/* main6-6.c 检验bo6-6.c的主程序 */
#define CHAR /* 字符型 */
/*#define INT /* 整型(二者选一) */
#include"c1.h"
#ifdef CHAR
typedef char TElemType;
TElemType Nil=' '; /* 字符型以空格符为空 */
#endif
#ifd
listing 6-6.java
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class CheckBoxes extends MIDlet implements CommandListener
{
private Display display;
private Form form;
priv
app6_6.java
// app6_6, 简单的范例
public class app6_6
{
public static void main(String args[])
{
star(); // 调用star() method
System.out.println("I love Java");
star(); //调用star() method
xt6-6.cpp
#include
using namespace std;
int main()
{int length(char *p);
int len;
char str[20];
coutstr;
len=length(str);
cout
example6_6.java
1. /* 移动方块 */
2. import java.awt.*;
3. import java.awt.event.*;
4. import javax.swing.*;
5. public class Example6_6 extends JFrame implements ActionListener
6. { private JButton left = new