Do input operands introduce boolean values ​​in C ++?

Reading through accelerated C ++, they give an example that I don't understand. This is a while loop with the condition (cin β†’ x). At this point, script x is declared as double. I understand that the loop is executed as long as x successfully receives the input, but returns β†’ a boolean? I think I just need to help a little to understand what it is β†’ and <do .... Also, while we are in the topic, what is the difference between iostream, ios and iomanip

+3
source share
1 answer

in fact, they return, i.e.

std::cin >> foo

- ( ), std::cin. , iostream bool, , , false, .

+8

Source: https://habr.com/ru/post/1774756/


All Articles