#include<iostream.h>
#include<conio.h>
class book
{
int bid;
static int cnt;
char bnm[20],bauth[20],bpub[20];
public:
void accept();
void show();
static void count();
};
int book::cnt;
void book::accept()
{
cout<<"\n Bid : ";
cin>>bid;
cout<<"\n B_name : ";
cin>>bnm;
cout<<"\n B_auth : ";
cin>>bauth;
cout<<"\n B_pub : ";
cin>>bpub;
cnt++;
}
void book::show()
{
cout<<"\n B_no : "<
cout<<"\n B_name : "<
cout<<"\n B_auth : "<
cout<<"\n B_pub : "<
}
void book::count()
{
cout<<"\n Taota count : "<
}
void main()
{
book b[10];
int i,n;
clrscr();
cout<<"\n How many records U want ? : ";
cin>>n;
cout<<"\n Enter records ";
for(i=0;i
{
b[i].accept();
cout<<"\n----------------------------------------";
}
cout<<"\n Book Information";
for(i=0;i
{
b[i].show();
cout<<"\n----------------------------------------";
}
book::count();
getch();
}