Re: write
Art Cummings wrote:
>>>
>>> student.write(reinterpret_cast<char
>>> *>(&studentInfo),sizeof(studentInfo));
>>
>> What type is student?
>>
>
> student is an arrray of structures
You mean as in:
some_structure student [some_size];
In that case, the line should not compile. There would be no write() member
function.
Best
Kai-Uwe Bux
|