CPlusPlusThings/english/basic_content/maohao/README.md
2020-07-19 10:38:38 +08:00

15 lines
512 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# :: 范围解析运算符那些事
## 关于作者:
个人公众号:
![](../img/wechat.jpg)
- 全局作用域符(::name用于类型名称类、类成员、成员函数、变量等表示作用域为全局命名空间
- 类作用域符class::name用于表示指定类型的作用域范围是具体某个类的
- 命名空间作用域符namespace::name:用于表示指定类型的作用域范围是具体某个命名空间的
具体代码见:[maohao.cpp](maohao.cpp)