class template, vector

Hi,

I have this question about storing books information. The actual question is stated below.
A. Some of the characteristics of a book are the title, author(s), publisher, ISBN, price, and year of publication.
B. Design a class bookType that defines the book as an ADT.
i. Each object of the class bookType can hold the following information about a book:
1. title,
2. up to four authors,
3. publisher,
4. ISBN,
5. price,
6. and number of copies in stock.
7. To keep track of the number of authors, add another member variable.
ii. Include the member functions to perform the various operations on objects of type bookType.
iii. For example, the usual operations that can be preformed on the title are:
 to show the title,
 set the title,
 and check whether the title is the same as the actual title of the book.
iv. Similarly, the typical operations that can be preformed on the number of copies in stock are :
 to show the number of copies in stock,
 set the number of copies in stock,
 update the number of copies in stock,
 and return the number of copies in stock.

v. Add similar operations for the publisher, ISBN, book price, and authors. Add the appropriate constructors and destructor (if one is needed).

B. Write the definitions of the member functions of the class bookType.

C. Write a program that uses the class bookType and tests various operations on the objects of the class bookType.

D. Declare an array of 100 components of the type bookType. Some of the operations that you should perform are to search for a book by title, search by ISBN, and update the number of copies of a book.





I have done all expect the search book and ISBN part. I wanted to try using vectors to store all the information.
However I am not sure on how to do that, starting from creating a class template to implementing the vectors.

can anyone help me with that?? Would appreciate very much.
Thanks.
Topic archived. No new replies allowed.