summaryrefslogtreecommitdiff
path: root/BlankConsoleLab
diff options
context:
space:
mode:
authorTaylor Rogers <[email protected]>2022-11-09 18:12:28 -0800
committerTaylor Rogers <[email protected]>2022-11-09 18:12:28 -0800
commitcb0b9205f50fd2e4f0d8fe2e23da3611ada4ebb7 (patch)
tree249115071942c4673f9c7a51d574a4570b47bb56 /BlankConsoleLab
parentAdded the three different outputs to a text file (diff)
downloadcst116-lab2-taylorrog-cb0b9205f50fd2e4f0d8fe2e23da3611ada4ebb7.tar.xz
cst116-lab2-taylorrog-cb0b9205f50fd2e4f0d8fe2e23da3611ada4ebb7.zip
Changed Wchfunc to "pass by reference" to meet lab reqs
Diffstat (limited to 'BlankConsoleLab')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index a63d56b..731949a 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -52,12 +52,12 @@ float CtoFfunc(float CtoFval)
// Converts Windspeed and Temp to Winchill
-float Wchfunc(float Wchcalc)
+float Wchfunc(float& Wchcalc)
{
Wchcalc = 0;
Wchcalc = 35.74f + .6215f * TvalF - 35.75f * (pow(Wspeed, 0.16f)) + 0.4275f * TvalF * (pow(Wspeed, 0.16f));
Wchill = Wchcalc;
- return (Wchill);
+ return Wchill;
}