+--------+
| | | | |
|-+-+-+-|
| | | | |
|-+-+-+-|
| | | | |
|-+-+-+-|
| | | | |
+--------+
la idea es porque estoy haciendo una especie de juego, por ejemplo, averiguar donde esta por ejemplo, una letra, dar las coordenadas, y si acierta sumar puntos, pero bueno, me gustaria saber como dibujar ese cuadro, voy a seguir intentandolo a ver si me sale, si alguien me podria echar un cable, se lo agradeceria
gracias
con este codigo, he podido conseguir lo que es el marco, pero aun asi, no me sale como la imagen que me gustaria
Código:
int main ()
{
int columnas;
int filas;
cout<<"Introduce el numero de filas";
cin>>columnas;
cout<<"Introduce el numero de columnas";
cin>>filas;
for (int i = 0; i < filas; i++)
{
if(i == 0 || i == filas -1)
cout <<"+";
else
cout<<"-";
}
cout << endl;
for (int k = 0; k <columnas; k++)
{
for (int j = 0; j < columnas; j++)
{
if (j ==0 || j == filas-1)
cout <<"|";
else
cout <<" ";
}
cout << endl;
}
for (int i = 0; i < filas; i++)
if(i == 0 || i == filas - 1)
cout <<"+";
else
cout<<"-";
cout<<endl;
system("PAUSE");
return 0;
}