+ 1

Can you Plz explain this stmnt "using namespace std;".

I am not geting why it us used here. does it links any library ?

4th Nov 2016, 5:29 AM
Jaydeep Galani
Jaydeep Galani - avatar
3 Antworten
+ 2
In C++, the built in C++ library routines are kept in the standard namespace. That includes stuff like cout, cin, string, vector, map, etc and so they left it as using namespace std; which is shorter than typing all that^^^^.
4th Nov 2016, 5:35 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
+ 1
without using namespace std; you would have to put std:: before a lot of stuff e.g: std::cout << "this is exhausting"
4th Nov 2016, 5:43 AM
Blazing Code
Blazing Code - avatar
+ 1
i got it but when i try to run without it it runs fine without any issues. can you please explain
4th Nov 2016, 9:40 AM
Sandeep Chatterjee