#include using namespace std ; #define NULL 0 #include "IntFamily.h" IntFamily::IntFamily(int Parent) { parent = Parent ; childList = (int *)NULL ; numChildList = 0 ; sizChildList = 0 ; } IntFamily::IntFamily(void) { IntFamily::IntFamily(0) ; } void IntFamily::addChild(int NewChild) { if (numChildList == sizChildList) { // We must grow the child list if (sizChildList == 0) sizChildList = 2 ; else sizChildList = 3*sizChildList/2 ; int *newChildList = new int[sizChildList] ; for (int i=0; i" ; for (int i=0; i0) OutStream << famObj.getChild(famSize-1) ; return OutStream ; }