aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301
diff options
context:
space:
mode:
Diffstat (limited to 'ee1301')
-rw-r--r--ee1301/wk4/hw4_directory/strap012_HW4B.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ee1301/wk4/hw4_directory/strap012_HW4B.cpp b/ee1301/wk4/hw4_directory/strap012_HW4B.cpp
index 49cc0a1..8cdfff2 100644
--- a/ee1301/wk4/hw4_directory/strap012_HW4B.cpp
+++ b/ee1301/wk4/hw4_directory/strap012_HW4B.cpp
@@ -28,8 +28,8 @@ int main()
std::cout << "File write failed!";
return -2;
}
- fin >> Useless >> Useless;
- while (fin >> letter >> garbage >> Count) {
+ fin >> Useless >> Useless; //The first line in the file is useless
+ while (fin >> letter >> garbage >> Count) { //The letter and the number of people in that grade is important, the comma is not
fout << " " << letter;
if (Count>hiCount) {
hiCount=Count;