Making a library book record

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~
Please explain what exactly is your homework.
We can't help you if we don't know what you need.
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~
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
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~
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
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..
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.
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?
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...
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.
I kinna get it now, thanx. But if along the way I encountered any problem, I will mention it here.. Thanx 4 the guidance~
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!!
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
what do you mean by higher? Higher in what? I tried it, there's definitely a difference but the pauses was still so fast...
do you mean that i have to set a value for s and i?
Topic archived. No new replies allowed.