aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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