c++写的简单的图书管理系统.docVIP

  • 25
  • 0
  • 约1.33万字
  • 约 33页
  • 2016-11-25 发布于贵州
  • 举报
 c写的简单的图书管理系统

#include iostream #include string #include cstring using namespace std; class Book { public: string bname; string author ; string bid; string press; string flag; }; class Booklist { public: Book *b; void init() { b=new Book[sizeof(Book)*500];//开辟一个500book大小空间 int i=0; for(i=0;i500;i++) b[i].bid=0; } bool exist(string bid) { if(bid==0) { coutid不能为0endl; return false; } for(int i=0;i500;i++) { if(b[i].bid==bid) { cout该书id已存在,请重新输入endl; return false; } } return tr

文档评论(0)

1亿VIP精品文档

相关文档