Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 03
diff options
context:
space:
mode:
Commit0e4f43de314c7e4afedda6a7126d91c0d7709a80 (patch)
Author
 Angel Dimitriev <angel_dimitriev@abv.bg>
2022-03-16 02:30:21 +0200
Committer
 GitHub <noreply@github.com>
2022-03-16 02:30:21 +0200
Files6a65cf371101d13afd1a7f07bde81b220a661dae /Sem. 03
Object-oriented_programming_FMI-0e4f43de314c7e4afedda6a7126d91c0d7709a80.tar
Object-oriented_programming_FMI-0e4f43de314c7e4afedda6a7126d91c0d7709a80.tar.gz
Object-oriented_programming_FMI-0e4f43de314c7e4afedda6a7126d91c0d7709a80.zip
Parent71bcc9540bead0eca20a7b5e4804b278463a0426 (diff)
Update students_staticName_to_binary.cpp
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 03/students_staticName_to_binary.cpp4
diff --git a/Sem. 03/students_staticName_to_binary.cpp b/Sem. 03/students_staticName_to_binary.cpp
index 51fb711..569bcff 100644
--- a/Sem. 03/students_staticName_to_binary.cpp
+++ b/Sem. 03/students_staticName_to_binary.cpp
@@ -22,7 +22,7 @@ int main()
ofstream file("student.dat", ios::binary);
- if (!file.open())
+ if (!file.is_open())
{
cout << "Error while writing to binary file!" << endl;
return -1;
@@ -35,7 +35,7 @@ int main()
Student st;
ifstream file("student.dat", ios::binary);
- if (!file.open())
+ if (!file.is_open())
{
cout << "Error while reading from binary file!" << endl;
return -1;