+ 2
C++ Input
What does this do? cin >> a >> b; Does it store the Input in both a and b so that means a and b will have the same value?
2 Respostas
+ 10
This allows a user to input multiple values separated by whitespace.
In this case, the first input goes in a, the second in b.
+ 1
It does the same thing as
cin >> a; cin >> b;
if a & b are int and the following data was entered,
5 6
a becomes 5 and b becomes 6.