大体意思是如两个vector<int> vector1元素为{1,2,3} vector2元素为 {5,4,3} 想要得到vector3{1,2,3,5,4,3}
int main(void) { vector<int> a; a.push_back(1); a.push_back(2); a.push_back(3); vector<int> b; b.push_back(4); b.push_back(5); b.push_back(6); b.insert(b.begin(),a.begin(),a.end()); for(int i=0;i<b.size();i++) cout<<b[i]; return 0; }