⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 type.h

📁 本源码为C++版的图书馆管理系统
💻 H
字号:
# 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -