Guest User

Untitled

a guest
Apr 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. #ifndef BOOKCOLLECTION_H
  2. #define BOOKCOLLECTION_H
  3. #include <iostream>
  4. #include <string>
  5. #include <vector>
  6. #include <cctype>
  7. #include "bookdata.h"
  8. //#include "mainmenu.h"
  9.  
  10. using namespace std;
  11.  
  12. class BookCollection
  13. {
  14. static const int MAX_BOOKS = 20;
  15. BookData book[MAX_BOOKS]; // array of BookData objects
  16. int findBook(string isbntitle);
  17. public:
  18. // From chapter 9
  19. void addBook();
  20. void deleteBook();
  21. void editBook();
  22. void lookUpBook();
  23. int lookupIsbn(string isbn);
  24. void displayIsbn();
  25. bool booksAvailable();
  26. BookData & operator[ ](int i) { return book[i]; }
  27. // Reporting functions from chapter 10
  28. void repListing();
  29. void repWholesale();
  30. void repRetail();
  31. void repQty();
  32. void repCost();
  33. void repAge();
  34. //private:
  35. //Auxilliary functions for matching titles
  36. //void match(string title, vector<unsigned int>&found);
  37. //void partialMatch(string title, vector<unsigned int>&found);
  38. //void displayBooks(vector<unsigned int>&):
  39. };
  40. #endif
Add Comment
Please, Sign In to add comment