Originally Posted by
maverick_pol
1. Which stream status bit indicates EOF?
a. OxOO
b. OxO1
c. OxO2
d. OxO3
e. OxO4
f. OxO5
g. OxO6
h. None of the above
enum io_state {
goodbit = 0x00, // no bit set: all is ok
eofbit = 0x01, // at end of file
failbit = 0x02, // last I/O operation failed
badbit = 0x04, // invalid operation attempted
hardfail = 0x80 // unrecoverable error
};
enum io_state {
goodbit = 0x00, // no bit set: all is ok
eofbit = 0x01, // at end of file
failbit = 0x02, // last I/O operation failed
badbit = 0x04, // invalid operation attempted
hardfail = 0x80 // unrecoverable error
};
To copy to clipboard, switch view to plain text mode
Bookmarks