Making a library book record

Feb 7, 2010 at 3:12pm
I'm a beginner in this world, a 2 month beginner. I've given a project on making a library book record programming, mostly using functions, but I do not which kind of function should I use and in what way should I start?

Thank u for your help.. Really need ur guidance~
Feb 7, 2010 at 6:06pm
Please explain what exactly is your homework.
We can't help you if we don't know what you need.
Feb 7, 2010 at 7:05pm
Ok, here's the question...

Library Book Record
Keeping the record of a library books. Include any necessary/appropriate informations for the books.


Informations that will be stored :
o The Book's Title
o The Publisher
o Author
o ISBN number
o Subject/Pages/Extra Information


Hope someone will help~
Feb 7, 2010 at 7:47pm
Create a Hello World program. Then create a Book class. The Book class will have members to hold the information about the book and probably a constructor to initialize said members.
Last edited on Feb 7, 2010 at 7:49pm
Feb 7, 2010 at 8:48pm
Ok, I'll try. But if there's another method, please tell. I really wanted to do this the best way I could. Thanx for ur help~
Feb 8, 2010 at 12:58am
are you familiar with classes? or structs? or file handling? how are you supposed to store this information?
I would think just a general class.. But 2 months in it's hard to say.

The best way, may not be a way that you would feel comfortable in doing, so really we need to find the way which is easiest for you to comprehend and get done.
Last edited on Feb 8, 2010 at 1:00am
Feb 8, 2010 at 1:43am
Then, could you tell me the easiest way to do this project by using arrays? I'm at the level of just entering the topic on ARRAYS right now, so I'm not familiar with that kind of things..
Feb 8, 2010 at 2:04am
You wouldnt be able to save anything with arrays, for the next time you opened it. I f I were you I would use random access files.
Feb 8, 2010 at 2:28am
My instructor just told me that we can use arrays but the program that we will build can update but the updated data wont be stored. The next time we open the program the new data that we stored wont get retrieved back.. So, it can be done by doing array right? But how should I start?
Feb 8, 2010 at 3:07am
You should:
Create a Hello World program. Then create a Book class. The Book class will have members to hold the information about the book and probably a constructor to initialize said members.


One step at a time...
Feb 8, 2010 at 8:35am
ok, so basically he wants user input, and the input to be stored in arrays which isn't too hard.
Except there's all that different info, which would be so much better as a struct or class. Anyway I guess we could make it 1 big string in the format of:

1
2
String: Title: "   ", Publisher: "    ", Author: "    ", ISBN: "    ", Subject: "    ",
        Pages: "   ", Extra Information: "    ";


Each of these can be variables, and you can ask the user to enter each bit of information. at the end of the user interaction you can concatenate all strings into 1 string and store it in the array....

It's definitely not the best way to go about it, but I'm guessing it is what the instructor wants, so you get used to playing with strings and arrays.
Feb 10, 2010 at 3:44am
I kinna get it now, thanx. But if along the way I encountered any problem, I will mention it here.. Thanx 4 the guidance~
Feb 20, 2010 at 1:41pm
Help me, please!!! I'm almost done with my project, but there's a problem when I want to display the stored event. The display is too fast, how can I slow it down?
Urgent call!!
Feb 20, 2010 at 2:09pm
1
2
3
4
5
6
7
8
9
int i;
int s; //speed--the higher, the longer the pause

for(i=0;i<s;i++)
{
//Nothing here, while the program pauses
}

//Continue.... 
Last edited on Feb 20, 2010 at 2:10pm
Feb 20, 2010 at 2:40pm
what do you mean by higher? Higher in what? I tried it, there's definitely a difference but the pauses was still so fast...
Feb 20, 2010 at 9:15pm
do you mean that i have to set a value for s and i?
Topic archived. No new replies allowed.