From 6825879fef9a5ffabd17537ce7cdc1cedc3c176a Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 12 Mar 2019 10:41:48 -0500 Subject: Fix if statements for futureproofing, if need be --- ee1301/wk4/hw4_directory/strap012_HW4C.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ee1301/wk4/hw4_directory') diff --git a/ee1301/wk4/hw4_directory/strap012_HW4C.cpp b/ee1301/wk4/hw4_directory/strap012_HW4C.cpp index e6825dc..474abcf 100644 --- a/ee1301/wk4/hw4_directory/strap012_HW4C.cpp +++ b/ee1301/wk4/hw4_directory/strap012_HW4C.cpp @@ -43,15 +43,15 @@ int main() } fin.close(); //This bit compares to see which vowel wins. if (A>E && A>I && A>O && A>U) - winner = 'A'; + { winner = 'A'; } if (E > A && E > I && E > O && E > U) - winner = 'E'; + { winner = 'E'; } if (I > E && I > A && I > O && I > U) - winner = 'I'; + { winner = 'I'; } if (O > E && O > I && O > A && O > U) - winner = 'O'; + { winner = 'O'; } if (U > E && U > I && U > O && U > A) - winner = 'U'; + { winner = 'U'; } std::cout << "The results are in!" << std::endl << "A/a received " << A << " votes" << std::endl -- cgit v1.2.3