S
Sebastor
Hi
I create bitmap array :
Graphics::TBitmap ***bitmap;
bitmap = new Graphics::TBitmap**[x];
for (int s=0;s<x;s++)
{
bitmap = new Graphics::TBitmap*[y];
for (int u=0;u<y;u++)
bitmap = new Graphics::TBitmap;
}
How can i delete this array ?
for (int s=0;s<x;s++)
{
for (int u=0;u<y;u++)
delete bitmap;
delete bitmap;
}
or I have to use "delete[]" command?
regards
Sebastor
I create bitmap array :
Graphics::TBitmap ***bitmap;
bitmap = new Graphics::TBitmap**[x];
for (int s=0;s<x;s++)
{
bitmap
for (int u=0;u<y;u++)
bitmap
}
How can i delete this array ?
for (int s=0;s<x;s++)
{
for (int u=0;u<y;u++)
delete bitmap
delete bitmap
}
or I have to use "delete[]" command?
regards
Sebastor