Please explain what sizeof operator is doing in this piece of code?
Also if someone could please explain what is going on (in detail) with the
whole line:
[tt] outfile.write((char *) &s1, sizeof(s1));[/tt]
Here is how it is used:
[tt]
{
s1.get_data();
outfile.write((char *) &s1, sizeof(s1));
cout <<"Enter q to quit or y to continue : ";
}
[/tt]