#1
|
|||
|
|||
cout what?
cout << variable;
or cout >> variable; |
#2
|
|||
|
|||
Re: cout what?
doesn't your compiler tell you?
|
#3
|
|||
|
|||
Re: cout what?
I'm pretty sure it's cout >> variable
Of course, I haven't done any C++ in like 3 years. |
#4
|
|||
|
|||
Re: cout what?
cout << variable;
To remember, cout is output and look at what direction the less than signs seem to indicate. |
#5
|
|||
|
|||
Re: cout what?
are you people speaking english?
|
#6
|
|||
|
|||
Re: cout what?
cout << variable.
cin >> variable. |
#7
|
|||
|
|||
Re: cout what?
computer sciences
thanks |
#8
|
|||
|
|||
Re: cout what?
cout << variable
the data is going from the variable to the console cin >> variable the data is going from the console to the variable just pretend they're arrows and its' easy to remember |
#9
|
|||
|
|||
Re: cout what?
[ QUOTE ]
just pretend they're arrows and its' easy to remember [/ QUOTE ] Yup, and I believe that's why B.S. chose << and >> to be the stream insertion/extracton operators in the first place, as opposed to some other operator. |
#10
|
|||
|
|||
Re: cout what?
[ QUOTE ]
[ QUOTE ] just pretend they're arrows and its' easy to remember [/ QUOTE ] Yup, and I believe that's why B.S. chose << and >> to be the stream insertion/extracton operators in the first place, as opposed to some other operator. [/ QUOTE ] yeah. let's not get into a discussion about overloading those operators and the ridiculousness of making that the first thing most people learn. |
|
|