#include #include // #include #include #include using namespace std; const int Maxr=100; //最多的读者 const int Maxb=100; //最多的图书 const int Maxbor=5; //每位读者最多借五本书 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() { //设置删除标记1:已删0:未删 tag=1; } void addreader(int n,char *na) { //增加读者 tag=0; no=n; strcpy(name,na); for(int i=0;i