Answers to Self-Review Exercises
-
streams.
left
,right
andinternal
.flags
.<iostream>
.<iomanip>
.showpos
.write
.istream
.cerr
orclog
.ostream
.<<
.cin
,cout
,cerr
andclog
.>>
.oct
,hex
anddec
.
-
False. The stream member function
flags
with afmtflags
argument sets theflags
state variable to its argument and returns the prior state settings.False. The stream insertion and stream extraction operators are not overloaded for all user-defined types. You must specifically provide the overloaded operator functions to overload the stream operators for use with each user-defined type you create.
False. The stream member function
flags
with no arguments returns the current format settings as afmtflags
data type, which represents the ...
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.