cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Question on input stream
Question on input stream
Sep 15, 2019 at 7:54pm UTC
Cazards
(1)
Hello, I have a study guide for my first c++ test. I have a true-false question I can't seem to find an exact answer for.
T F d) The state of an input stream can be tested as a true or false value.
Any help or explanation would be great
Sep 15, 2019 at 8:39pm UTC
coder777
(8439)
T F d) The state of an input stream can be tested as a true or false value.
True. Th istream has operators which allows to test the stream for true/false. See:
http://www.cplusplus.com/reference/ios/ios/operator_bool/
http://www.cplusplus.com/reference/ios/ios/operator_not/
Topic archived. No new replies allowed.