0

Why do we use 'namespace std'??

22nd Oct 2016, 7:58 AM
ZAKIUR RASHED AMIT
ZAKIUR RASHED AMIT - avatar
4 Answers
+ 1
In my 12th standard when I did programming in c++ we neither use std:: in any situation
22nd Oct 2016, 8:59 AM
Mayank Garg
Mayank Garg - avatar
+ 1
thank you very much!!
22nd Oct 2016, 9:00 AM
ZAKIUR RASHED AMIT
ZAKIUR RASHED AMIT - avatar
0
To avoid putting std:: in front of lots of words. For example : cout << "hello world" << endl is in fact : std::cout << "hello world" << std::endl So we put "using namespace std;" to simplify
22nd Oct 2016, 8:24 AM
Geoffrey
Geoffrey - avatar
0
because it defines that standard c++ library is to be used
22nd Oct 2016, 9:23 AM
Rahul Ghangas
Rahul Ghangas - avatar