#include #include #include "family.h" using namespace std; int main() { cout << "A grandparent is " << sizeof (grandparent) << " bytes.\n" << "A mother is " << sizeof (mother) - sizeof (grandparent) << " bytes, not counting its grandparent.\n"; mother m(10, 20); print(&m); grandchild g(30, 40, 50, 60); print(&g); return EXIT_SUCCESS; }