fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. vector<float> trace_float {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  7. int vertical_start = 2;
  8. int vertical_end = 20;
  9. auto trace_float_start = trace_float.begin() + vertical_start;
  10. auto trace_float_end = trace_float.begin() + vertical_end;
  11. for (auto it = trace_float_start; it != trace_float_end; it++) {
  12. cout << *it << endl;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
2
3
4
5
6
7
8
9
5.76354e-42
0
2.72751e-06
5.23025e+22
8.57982e-33
0
0
0
0
0