I am working with dynamic arrays in C++ and trying to assign a memory allocation. But, as I debug, I found out that the memory is not being allocated.
In header file:
Data *_elements;
In cpp file constructor:
_elements = new Data[10];
where Data is a struct, consisting a string type and int type.
While I am debugging, I noticed that the elements are not being assigned with 10 memory allocations.
I would like to know what is that I am doing wrong. Thank you!