filmov
tv
Namespace in C++ using | namespace std explanation

Показать описание
In this video session we are going to discuss another important and useful feature of C++. This feature is called namespace. By using namespace we can declare or define multiple identifiers of similar name in single program. These identifiers may be the name of variable, function, label or class.
In large programs sometime there are multiple programmers may working to develop its different features. So while combining the source code of individuals there may be conflict in name of identifiers. To avoid such type of situation using namespace is a best practice in C++.
The commonly used namespace in every c++ program is "using namespace std", which is part of standard iostream library.
In large programs sometime there are multiple programmers may working to develop its different features. So while combining the source code of individuals there may be conflict in name of identifiers. To avoid such type of situation using namespace is a best practice in C++.
The commonly used namespace in every c++ program is "using namespace std", which is part of standard iostream library.