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