📄 dbmanage.h
字号:
#ifndef DBSTRUCT //宏定义,防止宏定义内部代码被重复编译
#define DBSTRUCT
struct BookRecType{
char bno[5];
char bname[21];
char author[9];
char press[21];
int storenum;
int borrownum;
BookRecType * next;
};
struct ReaderInfo{
char rno[8];
char rname[10];
ReaderInfo * next;
};
#endif
/************************************************************************/
/* 说明:把book文件中的记录读入到BookRecType类型链表中 */
/* 参数:head 链表头指针 */
/************************************************************************/
void readfile(BookRecType **head);
/************************************************************************/
/* 说明:BookRecType类型链表中的数据保存到book文件中 */
/* 参数:head 链表头指针 */
/************************************************************************/
void writefile(BookRecType **head);
/************************************************************************/
/* 说明:把reader.dat文件中的记录读入到ReaderInfo类型链表中 */
/* 参数:head 链表头指针 */
/************************************************************************/
void readReaderInfo(ReaderInfo ** head);
/************************************************************************/
/* 说明:ReaderInfo类型链表中的数据保存到reader.dat文件中 */
/* 参数:head 链表头指针 */
/************************************************************************/
void writeReaderInfo(ReaderInfo ** head);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -