V
v.niekerk
Hi,
I would like to be able to create a variable number of objects. So, when
there's a class Thing, instead of
Thing thing1, thing2, thing3
do like
cin >> nr;
for (x = 0; x < nr; x--)
{
Thing thing[x];
}
I searched the net for info but found no answer and tried but get errors.
Is this possible anyway?
Thanks.
I would like to be able to create a variable number of objects. So, when
there's a class Thing, instead of
Thing thing1, thing2, thing3
do like
cin >> nr;
for (x = 0; x < nr; x--)
{
Thing thing[x];
}
I searched the net for info but found no answer and tried but get errors.
Is this possible anyway?
Thanks.