C and C++ Programming Resources | C & C++ Code Example Index

 

The C++ Namespaces Sample Codes Index Page

 

The following links demonstrate the C++ program examples on C++ namespaces. Namespaces used widely in defining various third party libraries that can be included together with the standard namespaces in C++ programming. This avoid a lot of the name and scope clashes and overlapped functionalities of the C++ libraries.

 

C++ Namespaces Code Samples

 

 

  1. The C++ namespace: C++ program example without the 'using namespace std;'

  2. Using the C++ standard  namespace statement explicitly in C++ programming

  3. Using the C header file (function) in C++ (C++ wrapper) program example

  4. The C++ namespace: The namespace 'std' program example

  5. The C++ namespace: the explicit access, namespace within a class C++ code sample

  1. The C++ namespace: the 'using declaration' C++ program example

  2. The C++ namespace: the 'using' directive C++ code example

  3. The C++ namespace: the anonymous or unnamed namespace and nested namespace C++ code example

  4. The C++ namespace: another simple namespace extension C++ program example

  5. The C++ namespace: the namespace extension, extending the original namespace C++ code example

  6. How to give new name (alias) to the existing namespace in C++ programming

  7.  How to use the C++ namespace without the 'using' directive for different namespaces

  8. How to use the namespace with the 'using' directive in C++ programming

 

C and C++ Programming Resources | C & C++ Code Example Index | C Code Example Index