By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,232 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,232 IT Pros & Developers. It's quick & easy.

customer requests

P: 20
a)hOW CAN I WRITE A CODE IN C++ that will allow customers to loan books from and return then to the library.

I have attempted it as follows


Public: : // Modifiers
Customer (); // default constructor
Void display customer details (Char*Char [], String);
Private: : // Queries
Char First name [20], Last name[25];
Char Address;
String Telephone number;
};


b) how can write programm that allows the customer to find a specific book using a programme that iterates through its records until it finds the books and returns pointer to the first book. I got stuck and i wrote something like this

iv) Class Library
{
Public :
Library ();
Void display total records of books (Char, double);

Private:
Char Title, Author;
Double ISDN number, Number of pages
Feb 17 '07 #1
Share this Question
Share on Google+
1 Reply


sicarie
Expert Mod 2.5K+
P: 4,677
a)hOW CAN I WRITE A CODE IN C++ that will allow customers to loan books from and return then to the library.

I have attempted it as follows


Public: : // Modifiers
Customer (); // default constructor
Void display customer details (Char*Char [], String);
Private: : // Queries
Char First name [20], Last name[25];
Char Address;
String Telephone number;
};


b) how can write programm that allows the customer to find a specific book using a programme that iterates through its records until it finds the books and returns pointer to the first book. I got stuck and i wrote something like this

iv) Class Library
{
Public :
Library ();
Void display total records of books (Char, double);

Private:
Char Title, Author;
Double ISDN number, Number of pages
Looks like you have a good start there. Where are you stuck?
Feb 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.