View Full Version : cout what?
Maulik
05-17-2005, 10:50 PM
cout << variable;
or
cout >> variable;
Gamblor
05-17-2005, 10:53 PM
doesn't your compiler tell you?
PoBoy321
05-17-2005, 10:57 PM
I'm pretty sure it's cout >> variable
Of course, I haven't done any C++ in like 3 years.
TheCodeDog
05-17-2005, 11:09 PM
cout << variable;
To remember, cout is output and look at what direction the less than signs seem to indicate.
jakethebake
05-17-2005, 11:22 PM
are you people speaking english?
GrunchCan
05-17-2005, 11:23 PM
cout << variable.
cin >> variable.
Maulik
05-17-2005, 11:28 PM
computer sciences
thanks
mason55
05-17-2005, 11:33 PM
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
GrunchCan
05-17-2005, 11:37 PM
[ 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.
mason55
05-17-2005, 11:42 PM
[ 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.
GrunchCan
05-17-2005, 11:44 PM
Have you read Accelerated C++? I do a lot of C++ mentoring at my job, and thought it might be a good choice for me to use instread of the "traditional" methods.
zephed56
05-18-2005, 04:03 AM
cout << "Hello World!";
Ha ha
Maulik
05-18-2005, 04:20 AM
[ QUOTE ]
cout << "Hello World!";
Ha ha
[/ QUOTE ]
good old 10th grade, its been a long time
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.