M
Mohsen
Hello everyone,
In my program, I have the 'Record class' as follow:
class Record
{
public:
int ID;
int PS[M];
int PD[M];
int Sex;
};
I have also defined the Animal as follows:
Record *Animal=new Record [NoAnimal];
Could anybody let me know what I should use to make the 'Animal'
free? Is it just "delete [] Animal;" or I should add anything more?
Thanks,
Mohsen
In my program, I have the 'Record class' as follow:
class Record
{
public:
int ID;
int PS[M];
int PD[M];
int Sex;
};
I have also defined the Animal as follows:
Record *Animal=new Record [NoAnimal];
Could anybody let me know what I should use to make the 'Animal'
free? Is it just "delete [] Animal;" or I should add anything more?
Thanks,
Mohsen