jeudi 4 mai 2017

c++ insert vector in other vector from specific position

My target is to insert vector in other vector from specific position with c++. Example:

std::vector<int> a = {1, 2, 3};
std::vector<int> b = {4, 5, 6};
int position = 1;

Output: 1, 4, 5, 6, 2, 3.

Aucun commentaire:

Enregistrer un commentaire