Discussion: write
Afficher un message
Vieux 07/12/2007, 15h40   #5
Kai-Uwe Bux
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
 
Page generated in 0,05337 seconds with 9 queries