type.h

来自「本源码为C++版的图书馆管理系统」· C头文件 代码 · 共 97 行

H
97
字号
# include <iostream.h>
# include <string>

//主数据库文件:
typedef struct {
	char bno[5];
	char bname[21];
	int namenext;
	char author[9];
	int authnext;
	char press[11];
	int prenext;
	char sortno[4];
	int storenum;
	int borrownum;
}BookRecType;
typedef struct {
	
	BookRecType BookDbase[100];
	int len;
}BookDbaseFile;

//书号索引文件:
typedef struct {
	char bno[5];
	int RecNo;
}BidxRecType;
typedef struct {
	
	BidxRecType BnoIdx[200];
	int len;
}BnoIdxFile;

//书名链头索引文件
typedef struct {
	char bname[21];
	int lhead;
	int RecNum;
}BNRecType;
typedef struct {
	
	BNRecType LHFrec1[200];
	int len1;
}LHFile1;

//作者链头索引文件
typedef struct {
	char author[9];
	int lhead;
	int RecNum;
}BARceType;
typedef struct {
	
	BARceType LHFrec2[200];
	int len2;
}LHFile2;

//出版社索引文件
typedef struct {
	char press[11];
	int lhead;
	int RecNum;
}BPRecType;
typedef struct {
   
	BPRecType LHFrec3[200];
	int len3;
}LHFile3;

//读者文件
typedef struct {
	char rno[4];
	char name[8];
	int bn1;
	int bn2;
}RRecType;
typedef struct {
	
	RRecType ReadRec[200];
	int len;
}ReadFile;

//借还书文件
typedef struct {
	char rno[4];
	char bno[5];
	char date1[9];
	char date2[9];
}BbookRecType;
typedef struct {
	
	BbookRecType Bbook[200];
	int len;
}BbookFile;


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?