Hello! There is a din. array of n elements. It is necessary to expand it ... Do not just take and allocate the newly created array in another area of memory, but expand the existing one (add new elements to the tail) ... How to do this? Did this:
`d_WB=(UserData*)realloc(d_WB, count_of_WB_herroy*sizeof(UserData));`
I climbed in memory and, it seems, the array is not expanding, but is being re-created ...
std::vector<UserData>
- KoVadim