From 49bea5c7ea1ccc557a218c12723c93635f560d95 Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Wed, 9 Mar 2022 16:07:50 +0200 Subject: Update simple_struct_binary.cpp --- Sem. 03/simple_struct_binary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sem. 03/simple_struct_binary.cpp') diff --git a/Sem. 03/simple_struct_binary.cpp b/Sem. 03/simple_struct_binary.cpp index 2f0bafc..6ee16de 100644 --- a/Sem. 03/simple_struct_binary.cpp +++ b/Sem. 03/simple_struct_binary.cpp @@ -17,7 +17,7 @@ int main() Test t = { true, 45 }; ofstream file("testObj.bat", ios::binary); - file.write((char*)&t, sizeof(t)); //since the data is grouped in the struct, we can save it like this. + file.write((char*)&t, sizeof(t)); } { //read -- cgit v1.3.1-23-gd82d