문제

I have following static declaration of memory:

void* array[5000];

How I can allocate the same memory using operator new in C++?

도움이 되었습니까?

해결책

void **array = new void*[5000];

다른 팁

at above there is array of pointers here is just an array of Integer.

int array = new int [5000];

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top