Closed Justme0 closed 8 years ago
A pointer to an array in heap should be deleted using delete [] syntax. And I strongly recommend using RAII style, that is std::vector here.
delete []
std::vector
A pointer to an array in heap should be deleted using
delete []
syntax. And I strongly recommend using RAII style, that isstd::vector
here.