diff options
| author | Taylor Rogers <[email protected]> | 2022-11-09 18:12:28 -0800 |
|---|---|---|
| committer | Taylor Rogers <[email protected]> | 2022-11-09 18:12:28 -0800 |
| commit | cb0b9205f50fd2e4f0d8fe2e23da3611ada4ebb7 (patch) | |
| tree | 249115071942c4673f9c7a51d574a4570b47bb56 /BlankConsoleLab | |
| parent | Added the three different outputs to a text file (diff) | |
| download | cst116-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.cpp | 4 |
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; } |