Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Homework
How to write the program used in libraries to monitor books borrowed and returned?
Posted 4-May-11 20:59pm
Edited 4-May-11 21:22pm
v2
Comments
S Mewara at 5-May-11 2:14am
   
No effort and lazy.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

D'Oh! | :doh:
 
It does not work like this here. I am sorry but there is no quick question here. This clearly sounds like your college project/assignment, you should put some effort.
 
We expect you to put some time in trying the issue that you are facing and then some time in formulating the question while posting here. I see both missing.
 
Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

As with your other question, google for RFID.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

First of all you should think a little bit on the problem, make a requirement list... once you've prepared that start dividing the steps to get the job done...
 
Surely you'll need to ask for some data to the user... get familiar on how to do that cin and cout...
Then you'll have to store data... As a database has not been mentioned in any place... I guess this is a low level exercise... so you should think on arrays or linked lists.
 
This should be enough for you to start working...
 

 

From now on you will find extra spoilers...
 
Do you have a specific number of books?
 
If you would say that there are a specific number of books and shelves...
 
I would go for an array with some dimensions:
 
Spaces[MaxBooksNumberAllowed].
 
Each array position should be a structure with the fields you would need:
 
1. Book name.
2. State of the book. (1 is in the shelf, 0 is out).
3. shelf.
4. position in the shelf.
...
 
Then you should ask the operator of the program for an action:
 
1. Do you want to search for a book?
2. Do you want to insert a book?
3. Do you want to take a book?
 
then it is as easy as search for the book and act as deserved (removing it), insert a book (ask for the position or search for an empty slot and put it there)...
 
Good luck!
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.150327.1 | Last Updated 5 May 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100