How to make an array with a dynamic size? General usage of dynamic arrays (maybe pointers too)?
For C++: If you just need a container just use std:vector. It will take care all the memory allocations necessary for you. However if you want to develop your own dynamic container (whatever reasons you have) you have to take care off the memory allocations yourself. That is, when your array grows you have to allocate new … Read more