Загрузка...

c++ - Why i can't delete my array pointer when i declared it with the 'new' keyword - Stack Overflow

Your bufferX and bufferY variables are not declared as class members but rather as variables in the asd() function/constructor and they are deleted when that function exits.

You should declare them as class members

#*buffery #retain #code #bufferx= #please

https://stackoverflow.com/questions/54384257/why-i-cant-delete-my-array-pointer-when-i-declared-it-with-the-new-keyword https://stackoverflow.com/questions/54384257/why-i-cant-delete-my-array-pointer-when-i-declared-it-with-the-new-keyword

Видео c++ - Why i can't delete my array pointer when i declared it with the 'new' keyword - Stack Overflow канала ResponseXAI
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять