cpp / beginner
Snippet
The Standard Namespace (std::)
C++ uses namespaces to organize code and avoid naming conflicts. Most standard features are prefixed with 'std::' to indicate they belong to the Standard Library.
snippet.cpp
1
std::cout << "Hello from the standard namespace!";
Breakdown
1
std::
The scope resolution operator '::' tells the compiler to look inside the 'std' namespace.
2
cout
The standard character output object used to print text to the screen.