From cb0b9205f50fd2e4f0d8fe2e23da3611ada4ebb7 Mon Sep 17 00:00:00 2001 From: Taylor Rogers Date: Wed, 9 Nov 2022 18:12:28 -0800 Subject: Changed Wchfunc to "pass by reference" to meet lab reqs --- BlankConsoleLab/BlankConsoleLab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') 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; } -- cgit v1.2.3