I
ikl
Is it right to define an array of pointers pointing to a list of objects
like this?
class A
{
};
A* ptr[15];
int i = 0;
for(i=0; i<15; ++i){
ptr = new A();
}
Is it possible to define a list of references referring to a list of
objects?
Thanks!
like this?
class A
{
};
A* ptr[15];
int i = 0;
for(i=0; i<15; ++i){
ptr = new A();
}
Is it possible to define a list of references referring to a list of
objects?
Thanks!