+ 1
Can you Plz explain this stmnt "using namespace std;".
I am not geting why it us used here. does it links any library ?
3 Answers
+ 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^^^^.
+ 1
without using namespace std; you would have to put std:: before a lot of stuff e.g: std::cout << "this is exhausting"
+ 1
i got it but when i try to run without it it runs fine without any issues. can you please explain