08 2012 档案

摘要:实现了顺序存储结构的二叉树和队列的基本操作,以下是相关函数及类型的声明#include <stdio.h>#include <stdlib.h>#include <string.h>#include <malloc.h> #include <math.h>#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define MAX_TREE_SIZE 100#define MAX_QUEUE_SIZE 5#define Nil ' ' typedef char 阅读全文
posted @ 2012-08-12 04:00 白光 阅读(11654) 评论(1) 推荐(0)
摘要:1 #include <stdio.h> 2 #include <malloc.h> 3 #define LEN sizeof(struct student) 4 5 /*----------------数据定义----------------------*/ 6 7 //定义一个学生信息的结构体,包括学号,姓名和结构体类型的指针 8 struct student 9 { 10 long num; //学号 11 char name[128]; //姓名 12 struct studen... 阅读全文
posted @ 2012-08-05 16:12 白光 阅读(62774) 评论(6) 推荐(3)