I have an array, which contains some elements. I hope to add some elements to the end of this array. Do you think that can I do for this? I don't want vector. how to resize and add the new element follow the last element?
2 Answers
You cannot do that.
Because of this, it does not make sense not to use vectors.
You have to use a dynamic array either from standard library like a vector or through making it your self by using memory management facilities like new operator.
You can learn more about vectors here.
You can learn more about new here
vector? That's what it's there for.