operator>>
have only 2 operands and return value, so when you write: std::cin >> v1 >> v2
it means:
result = std::cin >> v1
result >> v2
here other example: a + b + c
is
result = a + b
result + c
4
solved Can someone explain this? [C++]
operator>>
have only 2 operands and return value, so when you write: std::cin >> v1 >> v2
it means:
result = std::cin >> v1
result >> v2
here other example: a + b + c
is
result = a + b
result + c
4
solved Can someone explain this? [C++]