📜  基于范围的for循环c ++代码示例

📅  最后修改于: 2022-03-11 14:44:56.759000             🧑  作者: Mango

代码示例4
for (int i=0; i<5; ++i) {
  cout << i << " ";
}
// output is 0 1 2 3 4; note 5 is excluded since < is used and not <=