//********************show books record multiple
void showdatamulti_bk()
{ gotoxy(5,7);
cout<<"======================================================================";
gotoxy(8,8); cout<<"BOOK NO:";
gotoxy(25,8); cout<<bno;
gotoxy(35,8); cout<<"NAME OF BOOK:";
gotoxy(55,8); cout<<booknm;
gotoxy(8,9); cout<<"PUBLISHERS NAME";
gotoxy(30,9); cout<<pub;
gotoxy(40,9); cout<<"AUTHOR:";
gotoxy(55,9); cout<<author;
gotoxy(8,10); cout<<"PRICE";
gotoxy(25,10); cout<<price;
gotoxy(40,10); cout<<"QUANTITY:";
gotoxy(55,10); cout<<qty;
gotoxy(5,11); cout<<"=====================================================================";
}//********************show books record multiple
void modifydatabooks(int b1,char bknm[25],char p[25],char auth[25],float pr,int q1);
//****************show record of books tabular form*************************
//cout<<"NO."<<setw(15)<<"BOOK NAME"<<"--"<<"PUBLISHER" <<setw(25) <<"AUTHOR" <<setw(20)
<<"PRICE"<<setw(20)<<"QUANT.";
void showonlybooks(int c,int tqty)
{ gotoxy(1,c); cout<<bno<<setw(15)<<booknm<<"--"<<pub<<setw(20)<<author<<setw(10)<<tqty;
}
//******************only book no,name ,pub,author
void showallbooks(int c)
{ gotoxy(1,c);
cout<<bno<<setw(20)<<booknm<<"--"<<pub<<setw(20)<<author<<setw(10)<<price<<setw(10)<<qty;
}};
//************************modify the books ***********************************
void books::modifydatabooks(int b1,char bknm[25],char p[25],char auth[25],float pr,int q1)
{
char tmpnm[25],tmpnm2[25],tmpclass[25];
gotoxy(5,14);
cout<<"===================WANT TO MODIFY ===============================";
gotoxy(10,15); cout<<"BOOK NO:";
bno=b1; gotoxy(25,15);
cout<<bno; gotoxy(40,15); strcpy(booknm,bknm);
cout<<"BOOK NAME:"; gotoxy(60,15); cout<<booknm;
gotoxy(10,17); cout<<"Want to change the Book Name";
gotoxy(50,17); int flag=0;
while(1)
{ gets(tmpnm);
if(strlen(tmpnm)!=0)
{flag=1; break;}
if(strlen(tmpnm)==0)
{ flag=0; break;}
}
if(flag==1)
{ strcpy(booknm,tmpnm); }
gotoxy(5,18); strcpy(pub,p); //****************TO BE MODIFY
cout<<"PUBLISHER:"; gotoxy(20,18); cout<<pub; gotoxy(35,18); cout<<"Want to change the Publisher";
gotoxy(65,18); flag=0;
while(1)
{ gets(tmpnm2);
if(strlen(tmpnm2)!=0)
{ flag=1;break; }
if(strlen(tmpnm2)==0)
{ flag=0; break; }
}
if(flag==1) { strcpy(pub,tmpnm2); }
//*****************class to be modify
gotoxy(5,19); strcpy(author,auth);