dbmanage.h
来自「纯C语言的图书管理系统」· C头文件 代码 · 共 51 行
H
51 行
#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 + =
减小字号Ctrl + -
显示快捷键?