#ifndef MENU_H #define MENU_H #include #include "GuessingGame.hpp" using std::cout; using std::cin; using std::endl; inline void DisplayMenu(const int& value) { cout << "***************************************************************" << endl; cout << "Welcome to the menu!\n"; cout << "1. Currency Converter\n"; cout << "2. Guessing Game\n"; cout << "3. Temperature Logger\n"; cout << "5. Exit\n"; cout << endl; cout << "Please pick a number for your choice: "; } inline void Worker() { int input = 0; DisplayMenu(input); cout << input; cin >> input; while (input != 5) { switch (input) { case 1: //Call Currency Function break; case 2: //Call Guessing Game Function OutputRandomNumber(); break; case 3: //Call Temperature Logger break; default: cout << "\nInvalid option, please pick again..\n"; } DisplayMenu(input); cin >> input; } } #endif