Answer the question
In order to leave comments, you need to log in
How to assign the value of another to one vector in C++?
But not at creation. Both vectors are already created and have some elements. I know that you can clear through vector.clear();
Tried through vector1.assign(vector2);
and does not work
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question