as variable?
If you are not in std namespace, and if you didn't use using namespace std; then you can declare a variable with this name
and why its recommended for beginners not to use using namespace std;
Not only for beginners. using namespace std; often used in books, tutorials and slides to fit more information into the same space. In real code you don't have such limitations, and you can have different libraries (not only STL), and different namespaces of your own app also. The idea of namespaces is to avoid name collisions, if you use using namespace not wisely you will just neutrolize all the positive effects of namespaces and let the collisions happen.
Обсуждают сегодня