First page Back Continue Last page Graphics
Value of [cin >> variable]
You can use the value of the cin statement to determine if the conversion failed or succeeded.
- TRUE if the input succeeds
- FALSE if the input fails
An example of failure could be entering a character when the program expects an integer.