Can someone tell me why is it, where something is a variable, and notCode:cin >> something
???Code:cin << something
Because, I got confuse with the cout object as cout uses the symbol <<. Thanks in advance :D
Printable View
Can someone tell me why is it, where something is a variable, and notCode:cin >> something
???Code:cin << something
Because, I got confuse with the cout object as cout uses the symbol <<. Thanks in advance :D
The "arrow" created by ">>" or "<<" indicates which direction the data goes. So "cout << x" sends the value of x to the output, "cint >> x" takes the input and fills it into x.
--
Mats