- Name space
- member functions can be declared in the definition of a namespace and then used in a defined way such as: Namespace__name::member_name to define this member function
- The scope of the name in the namespace and the qualifier of the namespace are also necessary, and this is somewhat similar to the class. Qualifiers are the form of namespace_name::member_name.
- How to use declarative qualifiers: Using namespaces:: Names. Can not write namespaces in subsequent calls:: Name.
- namespaces:
- is actually a memory area named by the program designer, and the programmer can specify a number of namespaces as needed, placing some global entities in each namespace, separating them from other global entities
- Role: It is to create some separate scopes, separating some global entities from each other .
-
- Using namespaces
- Exception: Next blog post reproduced
C + + notes-namespaces and exceptions