Hello; I am pretty new to c++, and I'm having a problem with arrays. I want to know how to insert an element into an array; suppose I have an array x with numbers [1234567] how do I insert a new number into the array so that suppose I insert 9 just before 4, I have [12394567]. Please help me out on this cause I have read stuff on the internet about vectors, creating a new array and stuff like that. But I want to be able to manipulate the array to increase by one extra element and take something in whatever position I want, without affecting what was there before, looking forward to responses, thanks.
With a standard array you will need to shift everything to the right by one place in order to insert. You will need to make sure you have enough space allocated though