About 1,120,000 results
Open links in new tab
  1. c++ - Using std Namespace - Stack Overflow

    There seem to be different views on using 'using' with respect to the std namespace. Some say use ' using namespace std', other say don't but rather prefix std functions that are to be used with '...

  2. What is the function of "using namespace std;" in C++?

    The name vector exists within namespace std (as a templated class). In main() when it sees usage of the name vector, the previous using namespace std causes the compiler to look in std for names that …

  3. What's the problem with "using namespace std;"?

    I have heard using namespace std; is wrong, and that I should use std::cout and std::cin directly instead. Why is this? Does it risk declaring variables that share the same name as something in the...

  4. What is the use of "using namespace std"? [duplicate]

    Sep 20, 2013 · E.g. if you add using namespace std; you can write just cout instead of std::cout when calling the operator cout defined in the namespace std. This is somewhat dangerous because …

  5. c++ - Пространство имен (using namespace std;) - Stack Overflow на …

    Jan 19, 2016 · Неожиданный using namespace std, привнесённый в код заголовочным файлом, может всё поломать. Однако в cpp-файлах я всё время использую using namespace std. И …

  6. How do you properly use namespaces in C++? - Stack Overflow

    Sep 3, 2008 · But now I'm working in C++. How do you use namespaces in C++? Do you create a single namespace for the entire application, or do you create namespaces for the major components? If so, …

  7. c++ - ¿Por qué el usar "using namespace std;" se considera mala ...

    El problema que tendrías con el using namespace std; es que si, por ejemplo, quisieras declarate algo con el nombre vector entraría en conflicto con el vector de la STL, y puede llevar a errores …

  8. What requires me to declare "using namespace std;"?

    May 31, 2012 · This question may be a duplicate, but I can't find a good answer. Short and simple, what requires me to declare using namespace std; in C++ programs?

  9. O que é o using namespace? - Stack Overflow em Português

    Dec 7, 2018 · Desde o começo da minha aprendizagem em C++ me disseram para utilizar o namespace std, para não ficar toda hora utilizando o std::cout. Porém, depois de estudar mais sobre …

  10. Eclipse C++: Symbol 'std' could not be resolved - Stack Overflow

    Aug 5, 2012 · #include <iostream> using namespace std; I just created a executable project in Eclipse (in Windows 7) as shown below. It seems like I am selecting a toolchain that is not supported. Is it …