+ 1

What is basically a namespace?

in my first c++ program to output hello world I used "using namespace std". why?

4th Feb 2017, 5:18 AM
ritesh
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
4th Feb 2017, 9:02 AM
Siddharth Naithani
Siddharth Naithani - avatar