Link to home
Start Free TrialLog in
Avatar of zackexpert
zackexpert

asked on

create a class called "book" using c++ that has a private data of :

Hi guys,

I need to create a class called "book" that has a private data of :

class book
{
char author[10];
char title[10];
float price;
char publisher[15];
int stock_position;
public :
book()
{
cout<<"enter name:- "cin>>author;
cout<<"enter title:- ";cin>>title;
.
.
.
..
.

 
author
  title
  price
  publisher,and
stock position,and the public fuction of "constructor" using file(in c++) that uses the new operator.and when the user need to search he will enter the title and author name then the system searchs and display if avialable if not it will display an appropriate message.


Please and  Thank you!
Avatar of hclgroup
hclgroup

This sounds like home-work!

Please attempt assignment and ask questions pertaining to where you are having difficulty...
What's the question? We can help with your work, but we can't DO your work! What aspect are you having a problem with?
ASKER CERTIFIED SOLUTION
Avatar of ct.smith
ct.smith

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial