0
What is d difference between << and>> ?
2 Respostas
+ 2
Think them as the flow of the value, think them as simple arrow signs. When you write cout << foo, that means "monitor << variable" And when you type cin >> bar, it means "variable from keyboard >> your program".
+ 2
The >> arrow points inside so you can think of it as input arrow
the << arrow points outwards therefore the output from a computer