表单: LanguageNotes
用户: dreamable
创建日期: 2022-03-31 09:57:59 UTC
更新日期: 2022-03-31 09:57:59 UTC
引用:(Table ID 41, Record ID 2)

title :
size_t
note :
for(i=0;i<vector.size()-1;++i)

size_t is unsigned integer, so size()-1 is not -1. We should use i+1<vector.size() instead.

标签:
C++
表单: LanguageNotes
用户: dreamable
创建日期: 2021-08-21 08:36:14 UTC
更新日期: 2021-08-21 08:46:23 UTC
引用:(Table ID 41, Record ID 1)

title :
Functors
note :
标签: