feat(codes/cpp): revert the changes size_t back to int

This commit is contained in:
Gonglja
2023-01-13 15:07:12 +08:00
parent 78d7d07bd9
commit 845e70366d
5 changed files with 6 additions and 6 deletions

View File

@ -48,8 +48,8 @@ int main() {
PrintUtil::printVector(list);
/* 通过索引遍历列表 */
size_t count = 0;
for (size_t i = 0; i < list.size(); i++) {
int count = 0;
for (int i = 0; i < list.size(); i++) {
count++;
}