diff options
| author | WesleyR <[email protected]> | 2024-04-17 19:26:54 -0700 |
|---|---|---|
| committer | WesleyR <[email protected]> | 2024-04-17 19:26:54 -0700 |
| commit | bc08462eb9ba5be81d236f9cebb3f531c16e1749 (patch) | |
| tree | 0107937716abb660e14f223c07050b281fd80c81 /CST 126/Homework 1/menu.hpp | |
| parent | Hello World update (diff) | |
| download | archived-homework-1-wesleyr23-bc08462eb9ba5be81d236f9cebb3f531c16e1749.tar.xz archived-homework-1-wesleyr23-bc08462eb9ba5be81d236f9cebb3f531c16e1749.zip | |
updates
Diffstat (limited to 'CST 126/Homework 1/menu.hpp')
| -rw-r--r-- | CST 126/Homework 1/menu.hpp | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/CST 126/Homework 1/menu.hpp b/CST 126/Homework 1/menu.hpp new file mode 100644 index 0000000..51f8f0e --- /dev/null +++ b/CST 126/Homework 1/menu.hpp @@ -0,0 +1,74 @@ +#ifndef MENU_H +#define MENU_H + +#include <iostream>; +#include "clear.hpp" +#include "currency.hpp" + +using std::cout; +using std::cin; +using std::endl; + +inline void DisplayMenu() +{ + ClearScreen(); + + 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(); + + cin >> input; + + while (input != 5) + { + switch (input) { + case 1: + PickCurrency(); + break; + + case 2: + //guessing game + break; + + case 3: + //call temp logger + break; + + default: + cout << "Invalid option, please pick again..\n"; + + + } + DisplayMenu(); + + cin >> input; + } + + + + + +} + + + + + + + + + + +#endif |