谁那有图书管理系统源代码,用C++编的,只要代码!

来源:百度知道 编辑:UC知道 时间:2024/06/21 10:45:22
只要代码,不需要建库
题目:用C++实现简化的图书借还系统
要求1:图书维护包括购进新书需要把该书的信息输入图书库,办理图书证,日常图书维护。
要求2:查询图书。读者或图书馆管理人员可以按作者或出版社查询图书库中的图书。
要求3:读者借书。读者凭借书证借书,系统首先检查该读者的借书证是否有效。若无效,则拒绝借书。否则进一步检查该读者所借图书是否超过限额数。若达到限额数,则拒绝借书,否则读者可以借书。把图书证号,图书号,借书日期,还书日期等登记在借/还 书文种中。
要求4:读者还书根据图书证号,图书号从 借/还 书 文件中读出该图书相关的纪录,并登记还书的日期。
2个限定条件
1:每位教师借书不超过10本,学生不超过5本,外单位不超过2本。
2:出现图书过期的读者,不可以继续借书。

c语言的改一下输入输出就变c++了 printf变cout scanf变cin

不过程序不是我编写的不保证正确性

#include<stdio.h>
#include<string.h>
#include<conio.h>
#include<stdlib.h>
#include<ctype.h>
#define STACK_INIT_SIZE 10
#define OK 1
#define TRUE 1
#define FALSE 0
#define ERROR 0

struct student /*定义学生类型,用于存放借出的书籍*/
{
int studentnum,phonenum;
char lendbook[10];
}student[1000];

struct book /*定义书的类型*/
{
char bookname[11];
char publisher[20];
char page;
char year[6];
char status[4];
char name[11];
char author[51];
char booknum;
char bookcreat[10];
char borrownum;
char turefalse; /*用于借书和还书模块判断一本书是否借出的条件*/
}book[1000];

struct car /*借书卡的数据类型*/
{
int carnum;
char studentname[10];
int studentclass;
int studentphone;
}car[100];

addcar()
{