summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index 8183f7b..01b9755 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -55,7 +55,7 @@ int CeltoFar()
}
-int FartoCel()
+int FahtoCel()
{
cout << "Type your temprature in Fahrenheit: ";
cin >> Fah;
@@ -76,19 +76,11 @@ int FartoCel()
return WindSpeed;
return Cel;
}
-int readI()
-{
- int choose = 1;
-
- cout << "Type your selection here: ";
- cin >> choose;
- return choose;
-}
//Driver Program
int main()
{
- cout << "Welcome to the Menu!!" << endl;
+ Menu();
cout << "Cel or Fah" << endl << "Please type C or F: ";
cin >> Sel;
@@ -96,10 +88,11 @@ int main()
if (Sel == 'C' || Sel == 'c')
{
CeltoFar();
+ printFunctionCF();
}
else if (Sel == 'F' || Sel == 'f')
{
- FartoCel();
+ FahtoCel();
}
else
{
@@ -107,6 +100,6 @@ int main()
cin >> Sel;
}
- printFunctionCF();
+
}