文档介绍:#include <>
#include <>
#include <>
#define N 10
struct library
{
int num;
char book_name[30];
char writer[30];
char sort_num[3];
char pany[30];
char pub_time[30];
char prise[30];
};typedef struct library LIB;
struct history
{
char his_time[30];
char his_name[30];
}ANJIAN={"2008","许霆"};
LIB lib[N];
int all=0;
int menu(void);
void history(void);
void book(void);
int bookmenu(void);
void write(void);
void input(void);
void search(void);
void xiugai(void);
void output(void);
main()
{
for(;;)
{
switch(menu())
{
case 1:history();break;
case 2:book();break;
case 3:write();break;
case 0:exit(1);break;
}
}
}
int menu(void)
{
char m[3];
int n; printf(" ************************欢迎进入法院文档管理系统******************************\n\n");
printf("\t欢迎使用本院文档管理系统,本系统将为您提供历史案件信息查询,工作学习书籍查阅管理。\n");
printf("\t如果您对本院有什么建议,请留下您宝贵的意见!版权所有,北京理工大学珠海学院\n\n\n\n") ;
printf("---------------------------请选择您需要的服务项---------------------------------");
printf("\t\t1:历史案件查询\n");
printf("\t\t2:图书资料查询\n");
printf("\t\t3:留言建议\n");
printf("\t\t0:退出\n");
printf("\t\tplease choose a operation(0-3):\n");
printf("--------------------------------------------------------------------------------");
scanf("%s",m);
n=atoi(m);
return(n);
}
void history(void)
{
int i,flag;
char m[3];
char time[30];
char name