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 1.02 KB | None | 0 0
  1. Description: Main Menu Module
  2.  
  3. I certify that the code below is my own work.
  4.  
  5. Exception(s): N/A
  6.  
  7. */
  8. #include <iomanip>
  9. #include <iostream>
  10. #include "bookdata.h"
  11. #include "cashier.h"
  12. //#include "invmenu.h"
  13. #include "reports.h"
  14. #include "mainmenu.h"
  15. #include "BookCollection.h"
  16.  
  17. using namespace std;
  18.  
  19. int main()
  20. {
  21. BookCollection collection;
  22.  
  23. Menu::initialize(&collection);
  24. int menuChoice;
  25. do
  26. {
  27. cout << "\t\t\tSerendipity Booksellers" << endl;
  28. cout << "\t\t\t\tMain Menu" << endl;
  29. cout << endl;
  30. cout << "\t1. Cashier Module" << endl;
  31. cout << "\t2. Inventory Database Module" << endl;
  32. cout << "\t3. Report Module" << endl;
  33. cout << "\t4. Exit" << endl;
  34. cout << endl;
  35. cout << "\tEnter your choice: ";
  36. cin >> menuChoice;
  37. if (menuChoice < 1 || menuChoice > 4)
  38. cout << "\aInvalid entry!." << endl;
  39. if (menuChoice == 1)
  40. Menu::cashier();
  41. if (menuChoice == 2)
  42. Menu::invMenu();
  43. if (menuChoice == 3)
  44. Menu::reports();
  45. }
  46. while (menuChoice !=4);
  47. return 0;
  48. }
Add Comment
Please, Sign In to add comment