From d65138f2e040fe4193ea3fb4e2908bd0b161aadd Mon Sep 17 00:00:00 2001 From: Arthur Spears Date: Thu, 25 Apr 2024 20:19:57 -0700 Subject: Started Homework2. Stubbed out main and worker threads. Organized other source files better. --- CST 126/Homework 1/menu.hpp | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'CST 126/Homework 1/menu.hpp') diff --git a/CST 126/Homework 1/menu.hpp b/CST 126/Homework 1/menu.hpp index 849f21a..c384927 100644 --- a/CST 126/Homework 1/menu.hpp +++ b/CST 126/Homework 1/menu.hpp @@ -8,7 +8,7 @@ using std::cout; using std::cin; using std::endl; -inline void DisplayMenu() { +inline void DisplayMenuHomework1Menu() { cout << "***************************************************************" << endl; cout << "Welcome to the menu!\n"; cout << "1. Currency Converter\n"; @@ -19,34 +19,9 @@ inline void DisplayMenu() { cout << "Please pick a number for your choice: "; } -inline void Worker() { - int input = 0; - DisplayMenu(); - 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(); - - cin >> input; - } -} #endif \ No newline at end of file -- cgit v1.2.3