Hallo everyone.
i just wanted to ask if it is possible to create following allocation.
[highlight=cpp]
static JobOptions joblist [100];
for (int i = 0; i< 100i++){
delete joblist[i];
joblist[i] = new JobOptions(some parameter);
}[/highlight]
Here JopOptions is a Class an joblist is an object of that class.
did i writte correctly?
And it is enough to dellacated a memory so.
thank ofr your answer.
i just wanted to ask if it is possible to create following allocation.
[highlight=cpp]
static JobOptions joblist [100];
for (int i = 0; i< 100i++){
delete joblist[i];
joblist[i] = new JobOptions(some parameter);
}[/highlight]
Here JopOptions is a Class an joblist is an object of that class.
did i writte correctly?
And it is enough to dellacated a memory so.
thank ofr your answer.
Comment