can anyone explain this line for me?

Nov 28, 2011 at 12:39pm
im beginner in c++.i try to understand this code but i cant find what is this code mean..can anyone explain this line for me?
while(fp.read((char*)&iv,sizeof(inventory)))
Nov 28, 2011 at 12:42pm
Hi ,
while(fp.read((char*)&iv,sizeof(inventory)))
This line means read from the file pointer as character pointer to the length of the size of the inventroy structure .
Nov 28, 2011 at 12:51pm
bluecoder:ok.thanks!
Dec 1, 2011 at 6:46am
"the length of the size of the inventory structure" <----- what is the sentences mean??
Jan 3, 2012 at 1:50pm
"the length of the size of the inventory structure

soory i mean to say the size of the inventory(struct) .
Topic archived. No new replies allowed.