急需VC++的图书馆管理系统

来源:百度知道 编辑:UC知道 时间:2024/05/24 20:08:58
图书馆管理系统
要求:
要用VC或C++才可以。

我要交论文!急!!!!!!!!!!!
各位大哥,大姐帮帮忙!!!!!!!!!
我的信箱是fubaba8@163.com
谢谢了

#include <iostream>
#include <iomanip>
#include <fstream>
#include <string.h>
#define Maxbor 100
#define Maxr 100
#define Maxb 100
using namespace std;
class Reader
{
private:
int tag; //删除标记 1:已删 0:未删
int no; //读者编号
char name[10]; //读者姓名
int borbook[Maxbor];//所借图书
public:
Reader() {}
char *getname() {return name;} //获取姓名
int gettag() {return tag;} //获取删除标记
int getno() {return no;} //获取读者编号
void setname(char na[]) //设置姓名
{
strcpy(name,na);

}
void delbook(){ tag=1; }//设置删除标记 1:已删 0:未删
void addreader(int n,char *na)//增加读者
{
tag=0;
no=n;
strcpy(name,na);
for(int i=0;i<Maxbor;i++)
borbook[i]=0;
}
void borrowbook(int bookid)//借书操作
{
for(int i=0;i<Maxbor;i++)
{
if (borbook[i]==0)
{
borbook[i]=bookid;
return;

}
}

}