約1,960,000件1ページ目

日本語のみで絞り込む

2009/9/21 -The statement using namespace std is generally considered bad practice. The alternative to this statement is to specify the namespace to which ...

2024/11/11 -The line “using namespace std; ” in C++ signals to the compiler to treat all names in the std namespace as if they're in the global namespace.

2023/8/14 -It's makes the code hard to read , makes it prone to name conflicts and slow compilation time and project build time.

Since using namespace std brings all the identifiers from the std namespace into the global namespace, this can create naming conflicts with other namespaces.

In addition to what you said in the video, a common problem of "using namespace std" is if you try to create your own function and give it ...

YouTubeCodeBeauty

2026/7/11 -The using namespace std; statement makes the identifiers in the C++ Standard Library namespace directly accessible within the current scope.

2024/6/21 -A namespace is a declarative region that provides a scope to the identifiers (the names of types, functions, variables, etc) inside it.

Everything in the C++ standard library is in the std namespace. A namespace will allow you to #include your own, or 3rd party headers and ensure that you have ...

using namespace std;. This lets you use cout , cin , and endl without writing std:: every time. Without using namespace std ... You must type std:: before cout .

2012/3/24 -using namespace is also to be avoided in a source file. This brings every symbol into the same scope as the source file. It is more clear to ...