+ 1
What is basically a namespace?
in my first c++ program to output hello world I used "using namespace std". why?
1 Resposta
+ 2
in C++11 we cannot simply use cout or cin they have to be used as std::cout and std::cin respectively so we use namespace std to shorten the job for us !!!
namespace std also does some other works of shortening the repetitive operators !!!
#SiD