用C++编写图书管理系统.docVIP

  • 18
  • 0
  • 约6.93千字
  • 约 11页
  • 2016-06-14 发布于重庆
  • 举报
用C编写图书管理系统

做参照,基本功能都已经实现了,并且在VC6上已经编译运行确认: #include iostream #include iomanip #include string #include fstream//输入/输出文件流类 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(){ tag=1; }//设置删除标记 1:已删 0:未删 v

文档评论(0)

1亿VIP精品文档

相关文档