+ 4

What is #include<iostream> for and why do I need to know it?

I have been studying c++ and I don't understand it. I used the lesson from Sololearn and I still don't get what it is for. I also don't get namespace std.

14th Feb 2018, 6:19 PM
Babydoll Scripts
Babydoll Scripts - avatar
1 Réponse
+ 4
It's a header file. Without including it you couldn't access the classes implemented in there. iostream is inherited by istream and ostream and these contain the methods cin + cout which you probably use a lot
14th Feb 2018, 6:26 PM
Alex
Alex - avatar