📜  遍历 C++ 代码示例中的范围

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

代码示例1
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 <=