The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ios::clear
ios                                         Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  void clear( int nState = 0 );
 
  Parameter   Description
 
  <nState>    If 0, all error bits are cleared; otherwise bits are set
              according to the following masks (ios enumerators) that can
              be combined using the bitwise-OR (|) operator:
 
              Value          Meaning
 
              ios::goodbit   No error condition (no bits set)
 
              ios::eofbit    End of file reached
 
              ios::failbit   A possibly recoverable formatting or
                             conversion error
 
              ios::badbit    A severe I/O error
 
  Remarks
 
  Sets or clears the error-state flags. The rdstate function can be used
  to read the current error state.
 
  See Also
 
  ios::rdstate, ios::good, ios::bad, ios::eof
 
 
                                     -♦-