代码搜索结果
找到约 15,351 项符合
9 的代码
9-5.c
/*9-5.c*/
#include
#include
#include
#include
#include
#define N1 64
#define N2 32
#define N4 16
#define N8 8
#define N16 4
#define END 0
void
9-3.c
/*9-3.c*/
#include
#include
#include
#include
main()
{
int i,j;
randomize();
while(!bioskey(1))
{
i=rand()*5000;
sound(i);
delay(10);
}
nosound();
}
9-12.h
//9-12.h
#ifndef BINARYTREE_CLASS
#define BINARYTREE_CLASS
#include
#include
#ifndef NULL
const int NULL = 0;
#endif // NULL
#include "9-11.h"
template
9-4.h
//9-4.h
#ifndef NODE_LIBRARY
#define NODE_LIBRARY
#include
#include
#include "9-3.h"
// 生成节点:创建一个节点,数据成员值为item,指向后继节点的指针值为nextPtr
template
Node *GetNod
9-10.h
//9-10.h
#ifndef QUEUE_CLASS
#define QUEUE_CLASS
#include
#include
const int MaxQSize = 50; //队列元素最大个数
//类的定义
template
class Queue
{
private:
9-8.h
//9-8.h
#ifndef STACK_CLASS
#define STACK_CLASS
#include
#include
const int MaxStackSize = 50; //栈的大小,即栈中元素的最大个数
//类的定义
template
class Stack
{
pr
9-11.h
//9-11.h
#ifndef TREENODE_CLASS
#define TREENODE_CLASS
#ifndef NULL
const int NULL = 0;
#endif // NULL
template
class TreeNode
{
private:
TreeNode *left; //左指针
9-3.h
//9-3.h
#ifndef NODE_CLASS
#define NODE_CLASS
//类定义部分
template
class Node
{
private:
Node *next; //指向后继节点的指针
public:
T data; //数据域
// 构造函
9-9.h
//9-9.h
#include
#include
#include
#include
enum Boolean {False, True};
#include "9-8.h" // 包含栈类模板定义文件
class Calculator //计算器类
{
9-6.h
//9-6.h
#ifndef LINKEDLIST_CLASS
#define LINKEDLIST_CLASS
#include
#include
#ifndef NULL
const int NULL = 0;
#endif // NULL
#include "9-3.h"
template