0

How cout can display the text on the screen ???

it's a function what's it's contents

23rd Jun 2017, 5:53 PM
Ammar
Ammar - avatar
6 Antworten
+ 9
cout is not a function, but an object of the class ostream, as read here: http://www.cplusplus.com/reference/ostream/ostream/ And this is the source code for ostream (good luck understanding any of it): https://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-3.4/ostream-source.html Also, look here to see why you need the namespace std to use it: http://www.cplusplus.com/doc/oldtutorial/namespaces/
23rd Jun 2017, 6:18 PM
Tamra
Tamra - avatar
+ 2
@Tamra wooow, even after reading the ostream source code I can't understand how it work... One day Im gonna be as good (more) as the genius who wrote it !
23rd Jun 2017, 6:45 PM
clement
clement - avatar
+ 2
in layman's terms cout is kind of a command u give, to print ur text on the screen
2nd Nov 2017, 4:59 PM
Sakina Halvadwala
Sakina Halvadwala - avatar
+ 1
i think cout actually means console output. so its just outputting your input otherwise you would never see the outcome of your code. wouldent analyze it too much.
24th Jun 2017, 12:13 AM
Uni Verse
Uni Verse - avatar
+ 1
Thanks Sakina Halvadwala
2nd Nov 2017, 5:02 PM
Ammar
Ammar - avatar
0
thanks guys but I need more explanation 😊
23rd Jun 2017, 7:12 PM
Ammar
Ammar - avatar