图书馆管理系统.cpp

时间:2012-05-27 11:56:39
【文件属性】:

文件名称:图书馆管理系统.cpp

文件大小:19KB

文件格式:RAR

更新时间:2012-05-27 11:56:39

Btree

//************************************************************* #include #include #include #include "time.h" #define Time asctime(localtime (&rawtime)) //定义时间 time_t rawtime; struct tm * t; FILE * fp,*fq; //************************************************************* //************************************************************* typedef struct lianbiao{ //定义借书记录链表 char jieshuzhenghao[12]; char borrowtime[26]; struct lianbiao *next; }lianbiao; //************************************************************* typedef struct Record { //定义书本记录节点 char shuming[20]; char zuozhe[20]; int cunliang; int jiechuliang; int yujieliang; struct lianbiao *jieshuzhe[3]; }Record ; //************************************************************* #define ce 3 //定义b树的阶 typedef struct BTNode{ //定义b树的结构 int keynum; struct BTNode *parent; char key[ce+1][20]; struct BTNode *ptr[ce+2]; //0号不用 Record * recptr[ce+2]; 待续。。。


【文件预览】:
BTree.exe
BTree.cpp
log.txt

网友评论