|
-
October 27th, 2010, 02:48 AM
#8
Re: Few Qs about Cconventions (variable naming and variable/argument ordering etc)
 Originally Posted by JohnW@Wessex
Is that guaranteed ? Aren't you only allowed to assume that it will be 'size_type'?
"unsigned integer type" is pretty vague, nobody said it is exactly "unsigned int". unsigned integer type sounds perfectly fine to me.
At worst, I think you can assume that it is at least implicitly convertible to and from unsigned integer type.
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
|