刘彩月
yangtengze 2 years ago
parent 8c1cae1b86
commit 7c2b605117

@ -82,11 +82,8 @@ bool bookempty()
} }
// 添加图书 // 添加图书
template <int MAXSIZE = 256>
void DoAddBook() void DoAddBook()
{ {
if (books.length == MAXSIZE) {
cout << "books full" << endl;exit(DoAddBook);}
cout << endl << "Add Book"<< endl<<endl; cout << endl << "Add Book"<< endl<<endl;
Book book; Book book;
input(book); //输入图书 input(book); //输入图书

Loading…
Cancel
Save