得到某个位置的迭代器
得到某个位置的迭代器
vector<int>::iterator it;
it = a.begin()+4;
it = advance(a.begin(), 4);
it = next(a.begin(), 4);
CAD加油!欢迎跟我一起讨论学习算法,QQ:1401650042
vector<int>::iterator it;
it = a.begin()+4;
it = advance(a.begin(), 4);
it = next(a.begin(), 4);