|
 |
stbenge wrote:
> will work just fine elsewhere. Any help would be appreciated. I'm really
> stumped :(
Step one of being un-stumped is to figure out which of your assumptions in
the code is not holding true.
Print out fieldFileName.
Print out fieldFile.
Print out tempFx, tempFy, and val each time through the loop.
Print out the return values from fread.
print out sizeof(val).
The question you seek to answer is whether val is being read incorrectly, or
whether it's the assignment that is failing.
I also wonder why you read tempFx and tempFy and then don't use them for
anything. I'm assuming this is some header?
Showing the declaration of the rest of the class (including map) is probably
a good idea.
HTH.
--
Darren New, San Diego CA, USA (PST)
There's no CD like OCD, there's no CD I knoooow!
Post a reply to this message
|
 |