#ifndef MENU_H #define MENU_H #include #include "clear.hpp" #include "currency.hpp" #include "guessinggame.hpp" #include "temperature.hpp" using std::cout; using std::cin; using std::endl; inline void DisplayMenu() { ClearScreen(); cout << "*******************************************************************\n"; 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\n"; cout << "Please pick a number for your choice: "; } inline void Worker() { int input = 0; DisplayMenu(); cin >> input; while (input != 5) { switch (input) { case 1: PickCurrency(); break; case 2: GuessingGame(); break; case 3: StoreTemp(); break; default: cout << "Invalid option, please pick again..\n"; } DisplayMenu(); cin >> input; } } #endif