#include #include using namespace std; class book { private: char title[100]; char author[100]; char publisher[100]; float price; int stock; public: static int avai_stock; void read(); void print(); void add(); int search(char t[10]); int purchase(char t[10]); //static void sucessful(); }; int book::avai_stock; void book::read() { cin>>title>>author>>publisher>>price>>stock; book::avai_stock=avai_stock+stock; } void book::print() { cout<>title>>author>>publisher>>price>>stock; book::avai_stock++; } int book::search(char t[10]) { int flag=1; flag=strcmp(author,t); if(flag==0) { cout<>st; stock=stock+st; cout<>ch; switch(ch) { case 1: cout<<"enter the no. of books in library:"<>n; for(i=0;i>x; for(i=0;i>x; for(i=0;i