You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.7 KiB
66 lines
1.7 KiB
#ifndef BOOKS_H_INCLUDED
|
|
#define BOOKS_H_INCLUDED
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <conio.h>
|
|
#include <windows.h>
|
|
#include "user.h"
|
|
#include "BOOKUI.h"
|
|
#include "login.h"
|
|
#include "admin.h"
|
|
|
|
//#define "轻小说" 0
|
|
//#define "教育" 1
|
|
//#define "文学" 2
|
|
//#define "科幻" 3
|
|
//#define "自然科学" 4
|
|
//#define "外国文学" 5
|
|
//#define "禁书" 6
|
|
char *temp[1000];
|
|
FILE *fp_BOOK;
|
|
typedef struct memer_BOOK{
|
|
char id[21]; //编号
|
|
char name[21]; //书名
|
|
char author[21]; //作者
|
|
char type[21]; //类型 --->选项 类
|
|
char publish[21]; //出版社
|
|
int num; //数量 --->录入时查重,完全重复才++
|
|
struct memer_BOOK *next;
|
|
}BOOK;
|
|
|
|
char book1[21],book2[21],book3[21];
|
|
int booknum;
|
|
|
|
int books();
|
|
void newone_BOOK();
|
|
int newok_BOOK(char*id,char*name,char*author,char*type,char*publish,int num);
|
|
void showall_BOOK(int peo);
|
|
void in_BOOK();
|
|
void close_BOOK();
|
|
void save_BOOK();
|
|
void mpsort_BOOK();
|
|
void book_function_info(int choice);//用户功能菜单
|
|
void book_function_choose();//用户功能菜单的实现
|
|
void book_type_menu_info(int choice);//书本的类型菜单
|
|
int book_type_menu_choose();//书本的类型菜单的实现
|
|
void new_info();
|
|
void alter_BOOK_info();
|
|
void alter_BOOK();
|
|
void del_BOOK_info();
|
|
void del_BOOK();
|
|
void exchange_BOOK(char*,char*);
|
|
void conshow_BOOK(int fun,int peo);
|
|
void conshow_BOOK_choice(int peo);//0为user 1为admin
|
|
void conshow_BOOK_menu(int choice);
|
|
void borrowandreturn_BOOK_choice(int peo);//0为user 1为admin
|
|
void borrowandreturn_BOOK_menu(int choice);
|
|
void borrowandreturn_BOOK_info();
|
|
void borrow_BOOK(int peo);
|
|
void return_BOOK(int peo);
|
|
void change_password();
|
|
void back_BOOK(int peo);
|
|
|
|
#endif // BOOKS_H_INCLUDED
|