#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <iomanip>
#include <string>
using namespace std;
#include"system.h"
int main()
{
int ISBN=0;
string name;
string author;
string classic;
string publicor;
string publicTime;
double bookPrice=0;
int number=0;
int choice=0;
BookSystem book;
while(true)
{
book.showMenu();
cout<<"请输入操作[0-7]"<<endl;
cin>>choice;
switch(choice)
{
case1:
book.addBook(ISBN,name,author,classic,publicor,publicTime,bookPrice,number);
break;
case2:
book.changeBook();
break;
case3:
book.delBook();
break;
case4:
book.searchBook();
break;
case5:
book.displayBook();
break;
case6:
book.delAllBook();
break;
case7:
book.sortBook();
break;
case8:
cout<<"欢迎下次使用"<<endl;
system("pause");
exit(0);
break;
default:
system("cls");
break;
}
}
delete[] bookArray;
system("pause");
return 0;
}