0

use of #include<iostream>

what is the use of using namespace std, when we already have #include<iostream> for input and output operations.

21st Jul 2017, 6:17 PM
Justin P Mathew
3 Answers
+ 3
#include is typically used for header files. Name spaces are kind of like a library to organize things. For example, iostream has a name space inside called std. Inside of std is where you will find cin and cout.
21st Jul 2017, 8:22 PM
Jordan Chapman
Jordan Chapman - avatar
+ 1
It has the console input and output. If you want to use files for input and output, for example, you use fstream instead. Other channels are also possible with different libraries.
22nd Jul 2017, 1:00 AM
Denis Felipe
Denis Felipe - avatar
+ 1
To the enter and output of information
22nd Jul 2017, 9:47 AM
Balaid Bouharou Bouharou
Balaid Bouharou Bouharou - avatar