I have an array to a set size however I need the array size to change accordingly in Run-Time whilst keeping the previous array information. This can be done with two arrays but that requires double the memory. I also looked into using a string or basic_string which will work, but for the purpose I want - it won't. I noticed there were various commands like realloc and malloc etc. but it gets rid of the information then I found miscellaneous memory allocation (http://www.cplusplus.com/reference/std/memory/) but didn't really look into it, can it be done with those or something similar? Finally, I heard about std::vertor or something like that but couldn't find it or its header file.
Sorry if this post is a bit beyond beginner. :)
Any help would be much appreciated.