473,396 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

customer requests

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
1 1132
sicarie
4,677 Expert Mod 4TB
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

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

Similar topics

3
by: Fakhar | last post by:
Hi All, How can I check fake requests on my webpage. I am asking for email address as input and I wounder if anyone write a program to send fake requests and my system will be busy to respond...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
14
by: Zac Hester | last post by:
I figured since a lot of us around here design sites for "customers" a lot, I'd ask a general question that might help a lot of us in the future. When dealing with clients asking for...
3
by: Tony | last post by:
I've done a fair bit of searching on this, but I want to be certain about what I've found - so here goes with a long example and three questions: For clarity, let me give an example (a number of...
4
by: rzimerman | last post by:
I'm hoping to write a program that will read any number of urls from stdin (1 per line), download them, and process them. So far my script (below) works well for small numbers of urls. However, it...
8
by: Michael Schwarz | last post by:
Hi, I have a problem where I have two requests (i.e. two different windows that are using the same session) that are accessing the session collection. The requests will need more time on the...
3
by: Chris | last post by:
All I am cross-posting, as I'm not sure if this is an issue for the data layer or the application layer. If this is unacceptable, can someone let me know so that I don't do this in future. ...
8
by: dancole42 | last post by:
I have a form called CustomerLookup. It displays a DataSheet of all our customers so that someone can quickly and easily view all our customers. When someone double clicks on one of the...
7
by: =?Utf-8?B?Vkg=?= | last post by:
Hi, all. Need help with what seems to be either connection, or threading problem in my ASP.NET 2.0 application. The gist of the problem is this: IHttpHandler in my application serves an HTML...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.