aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-03-12 10:41:48 -0500
committerRossTheRoss <msattr@gmail.com>2019-03-12 10:41:48 -0500
commit6825879fef9a5ffabd17537ce7cdc1cedc3c176a (patch)
treeb28b9c72f4f6b3df7d549d7b8fecdcb6beb41f35
parentOutput file test (diff)
downloadhomework-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
-rw-r--r--ee1301/wk4/hw4_directory/strap012_HW4C.cpp10
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