+ 2

What is the use of namespace std?

23rd Jul 2016, 4:36 PM
Sanskar Jain
Sanskar Jain - avatar
4 ответов
+ 3
To get direct access to variables and methods defined in the standard libraries that come in C++... cout and cin are a good example of this...if you don't declare "using namespace std" at the begining of your code then you will have to use std::cout and std::cin each time you want to use them. You can also create you own namespaces when needed.... Hope it helped
24th Jul 2016, 2:51 AM
Nelson Urbina
Nelson Urbina - avatar
+ 1
getting standard library function
23rd Jul 2016, 5:01 PM
Nirav Suthar
Nirav Suthar - avatar
+ 1
lib to use or remove is std::cout
24th Jul 2016, 4:21 PM
Manvendra Singh
Manvendra Singh - avatar
0
thanks can you please tell me how to create our own namespaces
28th Jul 2016, 5:03 PM
Sanskar Jain
Sanskar Jain - avatar