From c3684763d2f18dfd68136e587c8709e09b9930e9 Mon Sep 17 00:00:00 2001 From: Menghui Xie Date: Tue, 19 Jun 2018 17:15:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BAtest=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 23 ++++++++++++++++++++++- Algorithm/BucketSort.cpp | 2 +- README.md | 6 +++++- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 86f533f..8846625 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -20,6 +20,27 @@ "ios": "cpp", "istream": "cpp", "ostream": "cpp", - "xiosbase": "cpp" + "xiosbase": "cpp", + "cctype": "cpp", + "cmath": "cpp", + "cstddef": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "cwchar": "cpp", + "iostream": "cpp", + "iterator": "cpp", + "memory": "cpp", + "new": "cpp", + "stdexcept": "cpp", + "typeinfo": "cpp", + "xfacet": "cpp", + "xlocale": "cpp", + "xlocinfo": "cpp", + "xlocnum": "cpp", + "xmemory": "cpp", + "xmemory0": "cpp", + "xstddef": "cpp" } } \ No newline at end of file diff --git a/Algorithm/BucketSort.cpp b/Algorithm/BucketSort.cpp index 8b3d36f..8ee2fd4 100644 --- a/Algorithm/BucketSort.cpp +++ b/Algorithm/BucketSort.cpp @@ -1,7 +1,7 @@ #include #include #include -using namespace std; +using std::vector; /***************** diff --git a/README.md b/README.md index 5b106cc..014998c 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ ## C/C++ -### const +
const
```cpp // 类 @@ -84,6 +84,10 @@ int* const function7(); // 返回一个指向变量的常指针,使用:i 3. 常量引用,经常用于形参类型,即避免了拷贝,又避免了函数对值的修改; 4. 修饰成员函数,说明该成员函数内不能修改成员变量。 + +
+ + ### volatile ```cpp