|
|
@ -86,7 +86,7 @@ template <int MAXSIZE = 256>
|
|
|
|
void DoAddBook()
|
|
|
|
void DoAddBook()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (books.length == MAXSIZE) {
|
|
|
|
if (books.length == MAXSIZE) {
|
|
|
|
cout << "books full" << endl;exit(DoAddBook);}
|
|
|
|
cout << "books full" << endl;}
|
|
|
|
cout << endl << "Add Book"<< endl<<endl;
|
|
|
|
cout << endl << "Add Book"<< endl<<endl;
|
|
|
|
Book book;
|
|
|
|
Book book;
|
|
|
|
input(book); //输入图书
|
|
|
|
input(book); //输入图书
|
|
|
|