cin |
Specifies the cin global stream.
Return Value
An istream object.
Remarks
The object controls extractions from the standard input as a byte stream. Once the object is constructed, the call cin.tie returns &cout.
Example
In this example, cin sets the fail bit on the stream when it encounters non-numeric characters. The program clears the fail bit and strips the invalid character from the stream to proceed.