aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-03-10 16:26:10 -0500
committerRossTheRoss <msattr@gmail.com>2019-03-10 16:26:10 -0500
commite01623ca1d7c94e90d7580bd98aa631c37ac1f18 (patch)
treeb80ff28ab4d3766927edbf6aeb5e0bb297bf89ec
parentChange \n to std::endl (diff)
downloadhomework-e01623ca1d7c94e90d7580bd98aa631c37ac1f18.tar
homework-e01623ca1d7c94e90d7580bd98aa631c37ac1f18.tar.gz
homework-e01623ca1d7c94e90d7580bd98aa631c37ac1f18.tar.bz2
homework-e01623ca1d7c94e90d7580bd98aa631c37ac1f18.tar.lz
homework-e01623ca1d7c94e90d7580bd98aa631c37ac1f18.tar.xz
homework-e01623ca1d7c94e90d7580bd98aa631c37ac1f18.tar.zst
homework-e01623ca1d7c94e90d7580bd98aa631c37ac1f18.zip
Fix 4C
-rw-r--r--ee1301/wk4/hw4_directory/strap012_HW4C.cpp6
-rw-r--r--output_files/election_results.txt6
2 files changed, 6 insertions, 6 deletions
diff --git a/ee1301/wk4/hw4_directory/strap012_HW4C.cpp b/ee1301/wk4/hw4_directory/strap012_HW4C.cpp
index 2041150..17ef381 100644
--- a/ee1301/wk4/hw4_directory/strap012_HW4C.cpp
+++ b/ee1301/wk4/hw4_directory/strap012_HW4C.cpp
@@ -63,9 +63,9 @@ int main()
return -2;
}
fout << "A," << A << std::endl
- << "E," << std::endl
- << "I," << std::endl
- << "O," << std::endl
+ << "E," << E << std::endl
+ << "I," << I << std::endl
+ << "O," << O << std::endl
<< "U," << U;
fout.close();
} \ No newline at end of file
diff --git a/output_files/election_results.txt b/output_files/election_results.txt
index 33b070e..418db83 100644
--- a/output_files/election_results.txt
+++ b/output_files/election_results.txt
@@ -1,5 +1,5 @@
A,227
-E,
-I,
-O,
+E,315
+I,330
+O,129
U,268 \ No newline at end of file