From 8dd835c935baa7c9f54d54ce747b58019b32052e Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Wed, 9 Mar 2022 16:08:04 +0200 Subject: Update students_staticName_to_binary.cpp --- Sem. 03/students_staticName_to_binary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sem. 03/students_staticName_to_binary.cpp') diff --git a/Sem. 03/students_staticName_to_binary.cpp b/Sem. 03/students_staticName_to_binary.cpp index 8f84d79..1047321 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); - file.write((const char*)&st, sizeof(st)); + file.write((const char*)&st, sizeof(st)); //since the data is grouped in the struct, we can save it like this. } { //read -- cgit v1.3.1-23-gd82d