0

What does cout means?

26th May 2018, 12:44 PM
Amutha Geethan
4 Answers
+ 2
std::cout and std::cin are global objects of classes std::ostream and std::istream respectively, which they've overloaded operator << and >> . You should read about operator overloading. cout is object of type ostream. cin is object of type istream.
26th May 2018, 12:45 PM
MsJ
MsJ - avatar
+ 2
cout means “console output" its used to display text to the console, cin means “console input” which takes input from the console
26th May 2018, 12:57 PM
TurtleShell
TurtleShell - avatar
+ 1
std::cout is the standard Console Output device , and std::cin is the standard Console Input device. Most often, cout is used to print on screen, and cin to take input from command line :-).
26th May 2018, 12:58 PM
ifl
ifl - avatar
+ 1
I don't really know, but for my own benefit, I remember it as "console out." For endl, I remember "end line." For my sake at least, I hope most of the commands are able to be remembered in some way like that! 😁
26th May 2018, 1:17 PM
Andrew Hartley
Andrew Hartley - avatar