diff --git a/.README.md.un~ b/.README.md.un~ index 338acb9..b22e784 100644 Binary files a/.README.md.un~ and b/.README.md.un~ differ diff --git a/README.md b/README.md index 8dd4fc9..4784ccf 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ - [explicit 那些事](./basic_content/explicit) - [friend 那些事](./basic_content/friend) - [using 那些事](./basic_content/using) -- [:: 那些事](./basic_content/::) +- [:: 那些事](./basic_content/maohao) - [enum 那些事](./basic_content/enum) - [decltype 那些事](./basic_content/decltype) - [引用与指针那些事](./basic_content/pointer_refer) diff --git a/README.md~ b/README.md~ index abd2e38..8dd4fc9 100644 --- a/README.md~ +++ b/README.md~ @@ -267,7 +267,7 @@ map mp{ -
+
Francis

diff --git a/basic_content/::/:: b/basic_content/::/:: deleted file mode 100755 index da06a11..0000000 Binary files a/basic_content/::/:: and /dev/null differ diff --git a/basic_content/maohao/.README.md.un~ b/basic_content/maohao/.README.md.un~ new file mode 100644 index 0000000..a02eba8 Binary files /dev/null and b/basic_content/maohao/.README.md.un~ differ diff --git a/basic_content/maohao/README.md b/basic_content/maohao/README.md new file mode 100644 index 0000000..d78b3e5 --- /dev/null +++ b/basic_content/maohao/README.md @@ -0,0 +1,14 @@ +# :: 范围解析运算符那些事 + +## 关于作者: + +个人公众号: + +![](../img/wechat.jpg) + +- 全局作用域符(::name):用于类型名称(类、类成员、成员函数、变量等)前,表示作用域为全局命名空间 +- 类作用域符(class::name):用于表示指定类型的作用域范围是具体某个类的 +- 命名空间作用域符(namespace::name):用于表示指定类型的作用域范围是具体某个命名空间的 + +具体代码见:[maohao.cpp](maohao.cpp) + diff --git a/basic_content/::/README.md b/basic_content/maohao/README.md~ similarity index 100% rename from basic_content/::/README.md rename to basic_content/maohao/README.md~ diff --git a/basic_content/::/::.cpp b/basic_content/maohao/maohao.cpp similarity index 100% rename from basic_content/::/::.cpp rename to basic_content/maohao/maohao.cpp