I'd like to convert iterator to int without using map. is it possible?
Qt Code:
  1. vector<boj>::iterator ll;
  2. //int i=1;
  3. for (ll=boj.begin(); ll != boj.end(); ++ll)
  4. printf("boj number %i\n",
  5. // i++ I'd like to avoid this way. I don't like
To copy to clipboard, switch view to plain text mode 

And why use '++ll' in for and not 'll++'? Thanks