+ 3
Namespace
What is the use of ' using namespace std '
2 Réponses
+ 8
It makes your code more simple to read and write.
std is a namespace used for c++ objects that are defined in standard libraries that you include at top of your code, when you write #include <iostream> and etc.
Without writing "using namespace std;", you would need to write "std::" in front of every c++ standard object. For example, std::cout, std::cin, std::string, std::endl and so on
- 1
Thanks