diff options
author | RossTheRoss <msattr@gmail.com> | 2019-03-12 10:41:48 -0500 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-03-12 10:41:48 -0500 |
commit | 6825879fef9a5ffabd17537ce7cdc1cedc3c176a (patch) | |
tree | b28b9c72f4f6b3df7d549d7b8fecdcb6beb41f35 /ee1301 | |
parent | Output file test (diff) | |
download | homework-6825879fef9a5ffabd17537ce7cdc1cedc3c176a.tar homework-6825879fef9a5ffabd17537ce7cdc1cedc3c176a.tar.gz homework-6825879fef9a5ffabd17537ce7cdc1cedc3c176a.tar.bz2 homework-6825879fef9a5ffabd17537ce7cdc1cedc3c176a.tar.lz homework-6825879fef9a5ffabd17537ce7cdc1cedc3c176a.tar.xz homework-6825879fef9a5ffabd17537ce7cdc1cedc3c176a.tar.zst homework-6825879fef9a5ffabd17537ce7cdc1cedc3c176a.zip |
Fix if statements for futureproofing, if need be
Diffstat (limited to 'ee1301')
-rw-r--r-- | ee1301/wk4/hw4_directory/strap012_HW4C.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 |