your problem is here:
for(row=0;row=maxrow+1;row++)
{
for(col=0;col=maxcol+1;col++)
{
grid[row][col]=0;
}
}
in
life::initialize
.
to check for equality, you need two equal signs as in:
for(row=0;row==maxrow+1;row++)
{
for(col=0;col==maxcol+1;col++)
{
grid[row][col]=0;
}
}