0

why we use using namespace std in a program

explain

2nd Oct 2016, 11:41 AM
faisal
2 Respostas
+ 2
useing namespace std tells the compiler to use the standard namespace library's, it is not nessary to put it at the top of your code, and most more advanced programs written in c++ do not. however you do need to tell the compiler what namespace you are useing, this can be done inline, for example #include <iostream> int main () { std::cout "hello "; std::cout "world"; return 0; }
2nd Oct 2016, 9:17 PM
Michael Cottone
Michael Cottone - avatar
- 2
“std” just like ”your” dog and “my” dog, let our kown “who's” dog.
2nd Oct 2016, 8:19 PM
Xefvan