In Binary Options - Q/A | by admin
I have a complicated class which contains; student name, birthday(this is another class Date), speciality, faculty number, and a conteiner map Now i should save all the data to a file, and then read it. I will write shortly; StudentBook S; cin>>S; ofstream ofs( “students2.dat” , ios::binary ); ofs.write( (char*) &S , sizeof(S) ); ofs.close(); [...]
