//Assuming B has already been declared and there are no compile errors.
class A
{
B** arrayofB;
int num_of_Bs;
A()
{
B newB(someargs);
arrayofB = new B*[10];
memset(arrayofB+1,0,10-1);//zeros memory of my array (hint: not the prob)
arrayofB[0] = newB;
num_of_Bs = 0;
}
void Render()
{
for(int i = 0; i <= num_of_Bs; i++)
arrayofB[i]->Render();
}
};
