0
What does cout means?
4 Antworten
+ 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.
+ 2
cout means “console output" its used to display text to the console, cin means “console input” which takes input from the console
+ 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 :-).
+ 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! 😁