blob: c97e6864bbe5d7cdb6c0fec322a9243bf1e5e266 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#ifndef MENU_H
#define MENU_H
#include <iostream>
#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
|