#ifndef LIFEH #define LIFEH #include //for size_t const size_t life_ymax = 10; const size_t life_xmax = 10; class life { int g; //generation number bool matrix[life_ymax + 2][life_xmax + 2]; public: life(const bool initial_matrix[life_ymax][life_xmax]); int generation() const {return g;} void next(); //Advance the matrix data member 1 generation; add 1 to g. void print() const; //Print the matrix data member. }; #endif