I'd like to convert iterator to int without using map. is it possible?
Qt Code:
vector<boj>::iterator ll; //int i=1; for (ll=boj.begin(); ll != boj.end(); ++ll) printf("boj number %i\n", // i++ I'd like to avoid this way. I don't likeTo copy to clipboard, switch view to plain text mode
And why use '++ll' in for and not 'll++'? Thanks
Bookmarks