我有这样的事情:
exchangeSubview(at:withSubviewAt:)
我得到一些这样的输出:
vector<int> tmp={1,4,6,10,6};
vector<int>::iterator it1=tmp.begin()+1;
vector<int>::iterator it2=tmp.begin()+3;
// printing before insertion
cout<<*it1<<" "<<*it2<<endl;
tmp.insert(tmp.begin()+2, 200 );
//printing after insertion
cout<<*it1<<" "<<*it2<<endl;
有人可以帮我理解这里发生的错误吗?