I woud like to ask what is return value of cin? I know it is istream object and when it is used in expression like if(!cin)
there is actually called some function and I woud like to know what function it actually is. cin.fail() or cin.good() or..
Is if(!cin) same as if(cin.fail())?
Asked
Active
Viewed 3,855 times
3

user1505497
- 321
- 5
- 13
-
http://stackoverflow.com/questions/5695146/what-is-cin-doing-inside-argument-of-if – Suvarna Pattayil Oct 15 '13 at 15:35