I
ikl
When creating a list of objects of the same class, what should be concerned
to decide if using "new" or not? Since how many number of the objects are
unknown until runtime, probably it is not a good idea to create like:
class A;
A a[SIZE];
....
How would like to code this? Thanks!
to decide if using "new" or not? Since how many number of the objects are
unknown until runtime, probably it is not a good idea to create like:
class A;
A a[SIZE];
....
How would like to code this? Thanks!