Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Description: Main Menu Module
- I certify that the code below is my own work.
- Exception(s): N/A
- */
- #include <iomanip>
- #include <iostream>
- #include "bookdata.h"
- #include "cashier.h"
- //#include "invmenu.h"
- #include "reports.h"
- #include "mainmenu.h"
- #include "BookCollection.h"
- using namespace std;
- int main()
- {
- BookCollection collection;
- Menu::initialize(&collection);
- int menuChoice;
- do
- {
- cout << "\t\t\tSerendipity Booksellers" << endl;
- cout << "\t\t\t\tMain Menu" << endl;
- cout << endl;
- cout << "\t1. Cashier Module" << endl;
- cout << "\t2. Inventory Database Module" << endl;
- cout << "\t3. Report Module" << endl;
- cout << "\t4. Exit" << endl;
- cout << endl;
- cout << "\tEnter your choice: ";
- cin >> menuChoice;
- if (menuChoice < 1 || menuChoice > 4)
- cout << "\aInvalid entry!." << endl;
- if (menuChoice == 1)
- Menu::cashier();
- if (menuChoice == 2)
- Menu::invMenu();
- if (menuChoice == 3)
- Menu::reports();
- }
- while (menuChoice !=4);
- return 0;
- }
Add Comment
Please, Sign In to add comment