From b1837a3abff2b95cae4fd277c64266ab929d0ce9 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Sun, 10 Mar 2019 13:14:53 -0500 Subject: C O M M E N T S --- ee1301/wk4/hw4_directory/strap012_HW4B.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ee1301') 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; -- cgit v1.2.3