|
-
January 11th, 2012, 03:10 AM
#15
Re: Thoughts on C++ integer types
 Originally Posted by Bssldr
The current C++ standard says that the size of a char is guaranteed to be 1 byte.
Too bad the standard doesn't define what the size of a byte is though! 
I've worked on a machine where a byte was 16 bits. I know for a fact that there are machines out there that define byte as being 64 bits longs.
Is your question related to IO?
Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|