Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef BOOKCOLLECTION_H
- #define BOOKCOLLECTION_H
- #include <iostream>
- #include <string>
- #include <vector>
- #include <cctype>
- #include "bookdata.h"
- //#include "mainmenu.h"
- using namespace std;
- class BookCollection
- {
- static const int MAX_BOOKS = 20;
- BookData book[MAX_BOOKS]; // array of BookData objects
- int findBook(string isbntitle);
- public:
- // From chapter 9
- void addBook();
- void deleteBook();
- void editBook();
- void lookUpBook();
- int lookupIsbn(string isbn);
- void displayIsbn();
- bool booksAvailable();
- BookData & operator[ ](int i) { return book[i]; }
- // Reporting functions from chapter 10
- void repListing();
- void repWholesale();
- void repRetail();
- void repQty();
- void repCost();
- void repAge();
- //private:
- //Auxilliary functions for matching titles
- //void match(string title, vector<unsigned int>&found);
- //void partialMatch(string title, vector<unsigned int>&found);
- //void displayBooks(vector<unsigned int>&):
- };
- #endif
Add Comment
Please, Sign In to add comment