|
-
January 17th, 2012, 03:10 AM
#9
Re: Multiple variables with cin
 Originally Posted by marmistrz
And if I assume the input's always correct?
I'm making a prog to make my life easier
I'd be happy with an array of int
If you want an easy life, then use a vector, not an array.
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
|