printf(\出版社:%s\\n\
printf(\图书编号:%ld\\n\ printf(\图书价格:%d\\n\ printf(\图书状态:%d\\n\ printf(\ p2=p1;
p1=p1->next; }
system(\ return 0; }
int Serch(BookPtr a) //查找函数 {
system(\ jiemian(); int b;
printf(\,按书名查询\\n\ printf(\按作者查询\\n\ printf(\按出版社查询\\n\ printf(\按编号查询\\n\ printf(\,按价格查询\\n\ printf(\按状态查询\\n\
printf(\请输入您要查询的方式:\\n\ scanf(\ switch(b) {
case 1:nameserch(a); break;
case 2:autherserch(a); break;
case 3:adresserch(a); break;
case 4:numserch(a); break;
case 5:priceserch(a); break;
case 6:onofserch(a); break; }
system(\}
int nameserch(BookPtr a)
{
system(\ jiemian();
BookPtr p1,p2; p1=p2=a; int flag=1;
char bookname[65];
printf(\请输入你要查询的书的名字:\ scanf(\ while(p1!=NULL) {
if(strcmp(p1->bookname,bookname)==0) {
printf(\图书名称:%s\\n\ printf(\图书作者:%s\\n\ printf(\出版社:%s\\n\
printf(\图书编号:%ld\\n\ printf(\图书价格:%d\\n\ printf(\图书状态:%d\\n\ flag=0; }
p2=p1;
p1=p1->next; }
if(flag==1)
printf(\对不起,尚未收录您正查询的图书!!!\}
int autherserch(BookPtr a) {
system(\ jiemian();
BookPtr p1,p2; p1=p2=a; int flag=1;
char auther[65];
printf(\请输入你要查询的作者的名字:\ scanf(\ while(p1!=NULL) {
if(strcmp(p1->auther,auther)==0) {
printf(\图书名称:%s\\n\ printf(\图书作者:%s\\n\
printf(\出版社:%s\\n\
printf(\图书编号:%ld\\n\ printf(\图书价格:%d\\n\ printf(\图书状态:%d\\n\ flag=0; }
p2=p1;
p1=p1->next; }
if(flag==1)
printf(\对不起,尚未收录您正查询的图书!!!\}
int adresserch(BookPtr a) {
system(\ jiemian();
BookPtr p1,p2; p1=p2=a; int flag=1;
char adress[65];
printf(\请输入你要查询的出版社的名字:\ scanf(\ while(p1!=NULL) {
if(strcmp(p1->chubanshe,adress)==0) {
printf(\图书名称:%s\\n\ printf(\图书作者:%s\\n\ printf(\出版社:%s\\n\
printf(\图书编号:%ld\\n\ printf(\图书价格:%d\\n\ printf(\图书状态:%d\\n\ flag=0; }
p2=p1;
p1=p1->next; } if(flag==1)
printf(\对不起,尚未收录您正查询的图书!!!\}
int numserch(BookPtr a) {
system(\ jiemian();
BookPtr p1,p2; p1=p2=a; int flag=1; int num;
printf(\请输入你要查询的编号:\ scanf(\ while(p1!=NULL) {
if(p1->booknumber==num) {
printf(\图书名称:%s\\n\ printf(\图书作者:%s\\n\ printf(\出版社:%s\\n\
printf(\图书编号:%ld\\n\ printf(\图书价格:%d\\n\ printf(\图书状态:%d\\n\ flag=0; }
p2=p1;
p1=p1->next; }
if(flag==1)
printf(\对不起,尚未收录您正查询的图书!!!\}
int onofserch(BookPtr a) {
system(\ jiemian();
BookPtr p1,p2; p1=p2=a; int flag=1; int of;
printf(\请输入你要查询的状态:\ scanf(\ while(p1!=NULL) {
if(p1->onof==of) {
printf(\图书名称:%s\\n\ printf(\图书作者:%s\\n\ printf(\出版社:%s\\n\