0

copy elements in vector (c++)

vector< int > a {1 , 2, 3}; Vector< int > b {4, 5, 6}; copy( a.begin() + 1, a.begin()+ 3, b.begin()); . This is giving the output => 2 3 6 But i want the out put = > 2 3 4 5 6 . How can i do this ??? Advance thanks ....

22nd Sep 2020, 4:57 PM
Md. Mursalatul Islam Pallob
Md. Mursalatul Islam Pallob - avatar
5 Answers
0
Any solution code ?
22nd Sep 2020, 6:31 PM
Md. Mursalatul Islam Pallob
Md. Mursalatul Islam Pallob - avatar
0
Can you specify the name of the algorithm ???
22nd Sep 2020, 6:39 PM
Md. Mursalatul Islam Pallob
Md. Mursalatul Islam Pallob - avatar