C++图书管理系统代码1.doc

1 - ??????一些基本的功能: ?? 1:添加图书以及图书编号 ?? 2:能够实行基本的借书还还书的功能。 ?? 3:? 删除图书信息等 ?#include iostream #include iomanip #include string #include fstream//输入/输出文件流类 using namespace std; const int Maxr=100;//最多的读者 const int Maxb=100;//最多的图书 const int Maxzf=5;//每位读者最多借五本书 //读者类,实现对读者的信息的描述 class Reader?????? {?? ??? private: ?int tag;? //删除标记 1:已删 0:未删 ?int no;?? //读者编号 ?char name[10];? //读者姓名 ?int zfbook[Maxzf];//所借图书 ??? public: ??Reader() {} ??? ?char *getname() {return name;}????? //获取姓名 ??int gettag() {return tag;}???????? //获取删除标记 ???? int getno() {return no;}?????????? //获取读者编号 ??? ?void setname(

文档评论(0)

1亿VIP精品文档

相关文档