diff options
| author | Anibal LopezBonilla <[email protected]> | 2022-11-07 13:02:28 -0800 |
|---|---|---|
| committer | Anibal LopezBonilla <[email protected]> | 2022-11-07 13:02:28 -0800 |
| commit | f88cadbd54f08d9b058979a6c2d221b20ab3b25d (patch) | |
| tree | f168ee24177a449154d4cd8a3cbbcde6ca6f7522 | |
| parent | Push 2 (diff) | |
| download | cst116-lab2-lopez-bonilla-f88cadbd54f08d9b058979a6c2d221b20ab3b25d.tar.xz cst116-lab2-lopez-bonilla-f88cadbd54f08d9b058979a6c2d221b20ab3b25d.zip | |
Push 3
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 17 |
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(); + } |