Integer Conversions
| Mayflower (25) | |||||
I have a question, but first...
Okay, I put this integer into the file correctly, but I am having a bit of trouble GETTING IT OUT! Can anyone finish this?:
Got anything? PS-I posted what I thought was an answer on another post but after I looked into it, I found it was HORRIBLY wrong, please disregard my advice! | |||||
| Duoas (1456) | |||
| No, you aren't outputting it correctly. You are writing four ints, each with an oddball value. You need to be careful to write just one byte.
Hope this helps. | |||
| Mayflower (25) | |||
| Umm, is there any known reason why ifstream can't ready unsigned chars? It's says it can't convert char & to unsigned char... | |||
| Duoas (1456) | |||
Argh. It is complaining about my cast on line 6. Just get rid of the
(unsigned char) part and it should work fine.Sorry. | |||
This topic is archived - New replies not allowed.
