Quote Originally Posted by Salem
> while (!CInput) // Better not to use eof()
Isn't actually any better either.
I agree with you. Had it been an iostream function, I would have controlled the loop with it, but the truth is I wasn't sure of the return on the std::getline() function. So I figured better safe the sorry.