[cs33211] Project 3
Mikhail Nesterenko
mikhail at cs.kent.edu
Sat Nov 24 21:41:38 EST 2012
>
> I figured out how to write a string say "animal" using pyrite and
> offsets and such But when it comes to integers, how am I suppose to
> write a more than 1 character integer (like 12) to the txt file
> (won't this take up two character spots which = 2 bytes?) My text
> file is organized like: animal which is 6 bytes, but when writing
> file size as 12 - that's two bytes
Consider using type "char" or "unsigned char". It can store integers
and its size is a single byte in C++.
Thanks,
--
Mikhail
More information about the cs33211
mailing list