Skip to content

Commit

Permalink
Update errors.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chunleili authored Dec 24, 2023
1 parent 9360358 commit 0bc0a20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/cpp/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@

基本上就是没有结束前一次运行的结果

## 使用错误

认为std vector的resize具备清零的功能是常见的错误。

实际上,应当使用`std::fill(v.begin(),v.end(),0.0);`来进行清零。

0 comments on commit 0bc0a20

Please sign in to comment.