約124件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.

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.

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

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 .

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

2024/7/16 -A namespace in C++ is a way to organize code into logical groups and prevent name conflicts by creating a distinct scope for identifiers ...

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 ...