Your problem description is a little vague.
Are you supposed to be able to enter book information that will be save to a database? Or a file of some sort? Or perhaps just in-memory?
Is this C or C++? Any other requirements?