StackOverflow 文档 C++ 教程 迭代 继续 继续 Created: November-22, 2018 跳到最小的封闭循环的末尾。 int sum = 0; for (int i = 0; i < N; i++) { int x; std::cin >> x; if (x < 0) continue; sum += x; // equivalent to: if (x >= 0) sum += x; } 做打破