#define NULL 0 #include "IntFamily.h" IntFamily::IntFamily(int Parent) { parent = Parent ; childList = (int *)NULL ; numChildList = 0 ; sizChildList = 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