Skip to content

Commit

Permalink
just commit
Browse files Browse the repository at this point in the history
  • Loading branch information
julyfun committed Jul 17, 2024
1 parent 5621ca0 commit 0917797
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions _posts/2023-05-20-cpp-style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -828,17 +828,6 @@ Foo<Bar, Baz<
* 全局常量 `UPPER_CASE`
* 如果和关键字冲突(例如 `namespace`),就连接一个下划线(例如 `namespace_`)。

## 单位

程序内部角度变量使用弧度制。给人编辑的角度常量(包括在参数表文件内)用角度制。

如果变量的名称中没有说明单位,默认采用国际单位。

```cpp
const double SOME_ANGLE = 30.0 / 180.0 * M_PI; // 角度制转弧度制
const double SIN_RESULT = std::sin(SOME_ANGLE);
```

## 不省略 if / for statements 的大括号

```cpp
Expand Down

0 comments on commit 0917797

Please sign in to comment.