#include <iostream>
#include <cstdlib>
using namespace std;
const int LIM_MAX = 3;// limite maximo (superpoblacion)
const int LIM_MIN = 2;// limite minimo (infrapoblacion)
const int FILAS = 10;// numero de filas del juego
const int COLUMNAS = 10;// numero de columnas del juego
const int FILAS_M = FILAS+2;// numero de filas del juego + margen
const int COLUMNAS_M = COLUMNAS+2;// numero de columnas del juego + margen
// Tipo Array para la creacion de un MundoVacio
typedef bool Mundo [FILAS_M] [COLUMNAS_M];
const char PUNTO = '.';
// Procedimiento para generar un MundoVacio
void mundovacio(Mundo& m)
{
int i;
int j;
/* Rellena el array con puntos*/
for (i=0; i<FILAS_M; i++){
for (j=0; j<COLUMNAS_M; j++){
m[i][j]=PUNTO;
}
}
// Imprime el array con un mundo vacio
for (i=0; i<FILAS_M; i++){
for (j=0; j<COLUMNAS_M; j++){
cout << m[i][j] << endl;
}
}
}
int main()
{
Mundo m;
mundovacio(m);
system("PAUSE");
return 0;
}