diff options
author | RossTheRoss <msattr@gmail.com> | 2019-03-10 13:14:53 -0500 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-03-10 13:14:53 -0500 |
commit | b1837a3abff2b95cae4fd277c64266ab929d0ce9 (patch) | |
tree | c1d1fb47d4cea54d55bdb2458bffd13691be63ac /ee1301/wk4/hw4_directory | |
parent | Fix mistake (diff) | |
download | homework-b1837a3abff2b95cae4fd277c64266ab929d0ce9.tar homework-b1837a3abff2b95cae4fd277c64266ab929d0ce9.tar.gz homework-b1837a3abff2b95cae4fd277c64266ab929d0ce9.tar.bz2 homework-b1837a3abff2b95cae4fd277c64266ab929d0ce9.tar.lz homework-b1837a3abff2b95cae4fd277c64266ab929d0ce9.tar.xz homework-b1837a3abff2b95cae4fd277c64266ab929d0ce9.tar.zst homework-b1837a3abff2b95cae4fd277c64266ab929d0ce9.zip |
C O M M E N T S
Diffstat (limited to '')
-rw-r--r-- | ee1301/wk4/hw4_directory/strap012_HW4B.cpp | 4 |
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; |