fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. std::vector<uint8_t> v;
  8. for(int i = 0; i < 256; i++){
  9. v.push_back(i);
  10.  
  11. }
  12.  
  13. for(auto k = v.begin() + 5; k != v.begin() + 10; ++k){
  14. cout << (int) *k << ",";
  15.  
  16. }
  17. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
5,6,7,8,9,