Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 02/README.md4
diff --git a/Sem. 02/README.md b/Sem. 02/README.md
index 16c3528..901e2c7 100644
--- a/Sem. 02/README.md
+++ b/Sem. 02/README.md
@@ -76,8 +76,8 @@ int main()
file << a << " " << b << " " << a + b << endl;
- if(!file.eof())
- cout << "The file contains more data after the two integers!"
+ if(!file.eof()) //check if the file has ended
+ cout << "The file contains more data after the two integers!" << endl;
file.close();
}