Search:

Type: Posts; User: laserlight

Search: Search took 0.31 seconds.

  1. Replies
    8
    Views
    1,707

    No. That clear member function clears the error...

    No. That clear member function clears the error state of the I/O stream. In this case, the stream is still in a good state, so there's no point using that function. Rather, you want to ignore()...
  2. Replies
    8
    Views
    1,707

    Hint: the use of formatted I/O operator>> to read...

    Hint: the use of formatted I/O operator>> to read an integer leaves the newline from entering the integer text in the input buffer. getline will then read until that newline instead of the next line.
Results 1 to 2 of 2